diff options
| author | Richard Kennedy <richard@rsk.demon.co.uk> | 2010-02-26 08:00:43 -0500 |
|---|---|---|
| committer | Jens Axboe <jens.axboe@oracle.com> | 2010-02-26 08:00:43 -0500 |
| commit | 58c24a61614f5da290068e47fc5ec65370eb61dd (patch) | |
| tree | ae8f51cef37239a4ebe12379deca7042680161c1 /include/linux | |
| parent | 024f9066165ffe9c8284431c78adcbcddd309831 (diff) | |
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 <richard@rsk.demon.co.uk>
----
patch against 2.6.33
compiled & test on x86_64 AMDX2
regards
Richard
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iocontext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iocontext.h b/include/linux/iocontext.h index 78ef023227d4..1195a806fe0c 100644 --- a/include/linux/iocontext.h +++ b/include/linux/iocontext.h | |||
| @@ -49,8 +49,8 @@ struct io_context { | |||
| 49 | /* | 49 | /* |
| 50 | * For request batching | 50 | * For request batching |
| 51 | */ | 51 | */ |
| 52 | unsigned long last_waited; /* Time last woken after wait for request */ | ||
| 53 | int nr_batch_requests; /* Number of requests left in the batch */ | 52 | int nr_batch_requests; /* Number of requests left in the batch */ |
| 53 | unsigned long last_waited; /* Time last woken after wait for request */ | ||
| 54 | 54 | ||
| 55 | struct radix_tree_root radix_root; | 55 | struct radix_tree_root radix_root; |
| 56 | struct hlist_head cic_list; | 56 | struct hlist_head cic_list; |
