]> err.no Git - linux-2.6/blobdiff - include/linux/fs.h
[PATCH] Introduce FMODE_EXEC file flag
[linux-2.6] / include / linux / fs.h
index 7c750312261b077e465d89e221d5b4c4fdb7f0fe..21e8cf795c38ddc139090b84ec91c50a14487d01 100644 (file)
@@ -65,6 +65,11 @@ extern int dir_notify_enable;
 #define FMODE_PREAD    8
 #define FMODE_PWRITE   FMODE_PREAD     /* These go hand in hand */
 
+/* File is being opened for execution. Primary users of this flag are
+   distributed filesystems that can use it to achieve correct ETXTBUSY
+   behavior for cross-node execution/opening_for_writing of files */
+#define FMODE_EXEC     16
+
 #define RW_MASK                1
 #define RWA_MASK       2
 #define READ 0