From: Andrew Morton Cc: Eric Dumazet Cc: Nick Piggin Signed-off-by: Andrew Morton --- include/linux/fs.h | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff -puN include/linux/fs.h~reduce-sizeofstruct-file-fix include/linux/fs.h --- devel/include/linux/fs.h~reduce-sizeofstruct-file-fix 2005-10-11 00:34:48.000000000 -0700 +++ devel-akpm/include/linux/fs.h 2005-10-11 00:34:48.000000000 -0700 @@ -574,13 +574,14 @@ struct file_ra_state { #define RA_FLAG_INCACHE 0x02 /* file is already in cache */ struct file { -/* - * f_list and f_rcuhead can share the same memory location - */ + /* + * fu_list becomes invalid after file_free is called and queued via + * fu_rcuhead for RCU freeing + */ union { struct list_head fu_list; struct rcu_head fu_rcuhead; - } f_u; + } f_u; struct dentry *f_dentry; struct vfsmount *f_vfsmnt; struct file_operations *f_op; _