From: Richard Kennedy Date: Fri, 26 Feb 2010 13:00:43 +0000 (+0100) Subject: block: remove padding from io_context on 64bit builds X-Git-Tag: v2.6.34-rc1~242^2~19 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=58c24a61614f5da290068e47fc5ec65370eb61dd;p=~shefty%2Frdma-dev.git block: remove padding from io_context on 64bit builds On 64 bit builds when CONFIG_BLK_CGROUP=n (the default) this removes 8 bytes of padding from structure io_context and drops its size from 72 to 64 bytes, so needing one fewer cachelines and allowing more objects per slab in it's kmem_cache. Signed-off-by: Richard Kennedy ---- patch against 2.6.33 compiled & test on x86_64 AMDX2 regards Richard Signed-off-by: Jens Axboe --- diff --git a/include/linux/iocontext.h b/include/linux/iocontext.h index 78ef023227d..1195a806fe0 100644 --- a/include/linux/iocontext.h +++ b/include/linux/iocontext.h @@ -49,8 +49,8 @@ struct io_context { /* * For request batching */ - unsigned long last_waited; /* Time last woken after wait for request */ int nr_batch_requests; /* Number of requests left in the batch */ + unsigned long last_waited; /* Time last woken after wait for request */ struct radix_tree_root radix_root; struct hlist_head cic_list;