]> 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 76041b6147582ef62eb0daedafbf1771a8e844c6..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;
@@ -1093,6 +1097,10 @@ struct file_lock {
 
 #include <linux/fcntl.h>
 
+/* temporary stubs for BKL removal */
+#define lock_flocks() lock_kernel()
+#define unlock_flocks() unlock_kernel()
+
 extern void send_sigio(struct fown_struct *fown, int fd, int band);
 
 #ifdef CONFIG_FILE_LOCKING