]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/fs.h
IMA: move read counter into struct inode
[net-next-2.6.git] / include / linux / fs.h
index 63d069bd80b702c392d4052bf2be937f90763692..01e3a0047fed244b2ee4e71712a562b035f99ee7 100644 (file)
@@ -776,6 +776,10 @@ struct inode {
 
        unsigned int            i_flags;
 
+#ifdef CONFIG_IMA
+       /* protected by i_lock */
+       unsigned int            i_readcount; /* struct files open RO */
+#endif
        atomic_t                i_writecount;
 #ifdef CONFIG_SECURITY
        void                    *i_security;