From: Mimi Zohar Date: Wed, 11 Dec 2013 20:20:54 +0000 (-0500) Subject: fs: move i_readcount X-Git-Tag: v4.14-rc1~6293^2~53^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d984ea604943bbeedde4e9715984eb942a298383;p=platform%2Fkernel%2Flinux-rpi.git fs: move i_readcount On a 64-bit system, a hole exists in the 'inode' structure after i_writecount. This patch moves i_readcount to fill this hole. Reported-by: David Howells Signed-off-by: Mimi Zohar Acked-by: David Howells --- diff --git a/include/linux/fs.h b/include/linux/fs.h index 121f11f..e88219d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -586,6 +586,9 @@ struct inode { atomic_t i_count; atomic_t i_dio_count; atomic_t i_writecount; +#ifdef CONFIG_IMA + atomic_t i_readcount; /* struct files open RO */ +#endif const struct file_operations *i_fop; /* former ->i_op->default_file_ops */ struct file_lock *i_flock; struct address_space i_data; @@ -606,9 +609,6 @@ struct inode { struct hlist_head i_fsnotify_marks; #endif -#ifdef CONFIG_IMA - atomic_t i_readcount; /* struct files open RO */ -#endif void *i_private; /* fs or device private pointer */ };