From: Richard Kennedy Date: Sat, 12 Jul 2008 00:20:49 +0000 (-0700) Subject: file lock: reorder struct file_lock to save space on 64 bit builds X-Git-Tag: v2.6.27-rc1~961^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afc1246f917c664b0df98b3c22fa62db74d2ca33;p=linux-2.6 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 Signed-off-by: Andrew Morton Signed-off-by: J. Bruce Fields --- diff --git a/include/linux/fs.h b/include/linux/fs.h index 7c10808268..87f89bd0f6 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -917,12 +917,12 @@ struct file_lock { struct list_head fl_link; /* doubly linked list of all locks */ struct list_head fl_block; /* circular list of blocked processes */ fl_owner_t fl_owner; + unsigned char fl_flags; + unsigned char fl_type; unsigned int fl_pid; struct pid *fl_nspid; wait_queue_head_t fl_wait; struct file *fl_file; - unsigned char fl_flags; - unsigned char fl_type; loff_t fl_start; loff_t fl_end;