Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Tue, 17 Apr 2007 22:59:11 +0000 (22:59 +0000)
committeradilger <adilger>
Tue, 17 Apr 2007 22:59:11 +0000 (22:59 +0000)
Change FMODE_EXEC declaration to match upstream kernel.
Don't conflict with FMODE_LSEEK in RHEL4 case.
b=11248

lustre/kernel_patches/patches/vfs_intent-2.6-rhel4.patch
lustre/kernel_patches/patches/vfs_intent-2.6-sles10.patch

index 8388cbc..c29bc5c 100644 (file)
        int nr_unused;
 --- linux-2.6.9.orig/include/linux/fs.h
 +++ linux-2.6.9/include/linux/fs.h
        int nr_unused;
 --- linux-2.6.9.orig/include/linux/fs.h
 +++ linux-2.6.9/include/linux/fs.h
-@@ -75,6 +75,7 @@ extern int leases_enable, dir_notify_ena
- #define FMODE_READ 1
- #define FMODE_WRITE 2
-+#define FMODE_EXEC 4
- /* Internal kernel extensions */
- #define FMODE_LSEEK   4
+@@ -81,6 +81,11 @@ extern int leases_enable, dir_notify_ena
+ #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
 @@ -259,6 +260,8 @@ typedef void (dio_iodone_t)(struct inode
  #define ATTR_ATTR_FLAG        1024
  #define ATTR_KILL_SUID        2048
 @@ -259,6 +260,8 @@ typedef void (dio_iodone_t)(struct inode
  #define ATTR_ATTR_FLAG        1024
  #define ATTR_KILL_SUID        2048
index 9d560be..8cd62d5 100644 (file)
        int nr_unused;
 --- linux-2.6.16.21-0.8.orig/include/linux/fs.h
 +++ linux-2.6.16.21-0.8/include/linux/fs.h
        int nr_unused;
 --- linux-2.6.16.21-0.8.orig/include/linux/fs.h
 +++ linux-2.6.16.21-0.8/include/linux/fs.h
-@@ -59,6 +59,7 @@ extern int dir_notify_enable;
- #define FMODE_READ 1
- #define FMODE_WRITE 2
-+#define FMODE_EXEC 16
- /* Internal kernel extensions */
- #define FMODE_LSEEK   4
+@@ -81,6 +81,11 @@ extern int leases_enable, dir_notify_ena
+ #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
 @@ -265,6 +266,8 @@ typedef void (dio_iodone_t)(struct kiocb
  #define ATTR_KILL_SUID        2048
  #define ATTR_KILL_SGID        4096
 @@ -265,6 +266,8 @@ typedef void (dio_iodone_t)(struct kiocb
  #define ATTR_KILL_SUID        2048
  #define ATTR_KILL_SGID        4096