mark struct file that had write access grabbed by open()
[linux-block.git] / include / linux / fs.h
index e80659ed78fc0c6f59d00b937a645fb1b866a489..d9d88a0b456e54cd178a0b2e7ac7081b68fa58f2 100644 (file)
@@ -125,6 +125,8 @@ typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
 
 /* File needs atomic accesses to f_pos */
 #define FMODE_ATOMIC_POS       ((__force fmode_t)0x8000)
+/* Write access to underlying fs */
+#define FMODE_WRITER           ((__force fmode_t)0x10000)
 
 /* File was opened by fanotify and shouldn't generate fanotify events */
 #define FMODE_NONOTIFY         ((__force fmode_t)0x1000000)