fs: move i_readcount
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 11 Dec 2013 20:20:54 +0000 (15:20 -0500)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 7 Mar 2014 16:31:55 +0000 (11:31 -0500)
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 <dhowells@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
include/linux/fs.h

index 121f11f001c06f1cdcdeb6533234d76626a2915b..e88219d3f42b97af50da5f67de91ddaed1e44bab 100644 (file)
@@ -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 */
 };
 
This page took 0.026464 seconds and 5 git commands to generate.