diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2008-07-11 20:20:49 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-07-13 17:22:24 -0400 |
commit | afc1246f917c664b0df98b3c22fa62db74d2ca33 (patch) | |
tree | 6845972ea8f939cde7569264a63cd788d68e5e69 /include/linux | |
parent | e518f0560a191269bd345178c899c790eb1ad4c8 (diff) |
file lock: reorder struct file_lock to save space on 64 bit builds
Reduce sizeof struct file_lock by 8 on 64 bit builds allowing +1 objects
per slab in the file_lock_cache
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 7c1080826832..87f89bd0f6ee 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -917,12 +917,12 @@ struct file_lock { | |||
917 | struct list_head fl_link; /* doubly linked list of all locks */ | 917 | struct list_head fl_link; /* doubly linked list of all locks */ |
918 | struct list_head fl_block; /* circular list of blocked processes */ | 918 | struct list_head fl_block; /* circular list of blocked processes */ |
919 | fl_owner_t fl_owner; | 919 | fl_owner_t fl_owner; |
920 | unsigned char fl_flags; | ||
921 | unsigned char fl_type; | ||
920 | unsigned int fl_pid; | 922 | unsigned int fl_pid; |
921 | struct pid *fl_nspid; | 923 | struct pid *fl_nspid; |
922 | wait_queue_head_t fl_wait; | 924 | wait_queue_head_t fl_wait; |
923 | struct file *fl_file; | 925 | struct file *fl_file; |
924 | unsigned char fl_flags; | ||
925 | unsigned char fl_type; | ||
926 | loff_t fl_start; | 926 | loff_t fl_start; |
927 | loff_t fl_end; | 927 | loff_t fl_end; |
928 | 928 | ||