[Devel] [PATCH RH7] FMODE_MOUNT redefine
Vasily Averin
vvs at virtuozzo.com
Mon May 25 09:44:40 MSK 2020
FMODE_WRITER define was added in RHEL7.8 kenrel with constant
used by FMODE_MOUNT.
Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
include/linux/fs.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 73c1c55c5362..ff3a59ddad5f 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -137,12 +137,12 @@ typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
/* Write access to underlying fs */
#define FMODE_WRITER ((__force fmode_t)0x10000)
-/* File is a block device opened by mount(2) */
-#define FMODE_MOUNT ((__force fmode_t)0x10000)
-
/* File was opened by fanotify and shouldn't generate fanotify events */
#define FMODE_NONOTIFY ((__force fmode_t)0x1000000)
+/* File is a block device opened by mount(2) */
+#define FMODE_MOUNT ((__force fmode_t)0x40000000)
+
/* The extended KABI iterate method in struct file_operations is present */
#define FMODE_KABI_ITERATE ((__force fmode_t)0x80000000)
--
2.17.1
More information about the Devel
mailing list