aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Kennedy <richard@rsk.demon.co.uk>2011-03-22 19:33:56 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-22 20:44:10 -0400
commitf3ccfcdaf3986f8c541886606e950de52cab7ad3 (patch)
tree3433cd58adfe51db1f466e6033040ac9a512ffd2 /include
parentc837fb37a60aa642b9ad423462e32b851a03020a (diff)
fs.h: remove 8 bytes of padding from block_device on 64bit builds
Re-ordering struct block_inode to remove 8 bytes of padding on 64 bit builds, which also shrinks bdev_inode by 8 bytes (776 -> 768) allowing it to fit into one fewer cache lines. Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 7061a8587ee3..12529e966350 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -662,9 +662,9 @@ struct address_space {
662 662
663struct block_device { 663struct block_device {
664 dev_t bd_dev; /* not a kdev_t - it's a search key */ 664 dev_t bd_dev; /* not a kdev_t - it's a search key */
665 int bd_openers;
665 struct inode * bd_inode; /* will die */ 666 struct inode * bd_inode; /* will die */
666 struct super_block * bd_super; 667 struct super_block * bd_super;
667 int bd_openers;
668 struct mutex bd_mutex; /* open/close mutex */ 668 struct mutex bd_mutex; /* open/close mutex */
669 struct list_head bd_inodes; 669 struct list_head bd_inodes;
670 void * bd_claiming; 670 void * bd_claiming;