docs: vfs: Update struct file_system_type
Subsystems (3)
PATCH 1/1 docs: vfs: Update struct file_system_type
The structure definition now in the kernel adds macros defining the value of "fs_flags", and the value "FS_NO_DCACHE" no longer exists, update it to an existing flag value.
--- Documentation/filesystems/vfs.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
Documentation/filesystems/vfs.rst +9 -1
@@ -115,6 +115,14 @@ members are defined: struct file_system_type { const char *name; int fs_flags; + #define FS_REQUIRES_DEV 1 + #define FS_BINARY_MOUNTDATA 2 + #define FS_HAS_SUBTYPE 4 + #define FS_USERNS_MOUNT 8 /* Can be mounted by userns root */ + #define FS_DISALLOW_NOTIFY_PERM 16 /* Disable fanotify permission events */ + #define FS_ALLOW_IDMAP 32 /* FS has been updated to handle vfs idmappings. */ + #define FS_MGTIME 64 /* FS uses multigrain timestamps */ + #define FS_RENAME_DOES_D_MOVE 32768 /* FS will handle d_move() during rename() internally. */ int (*init_fs_context)(struct fs_context *); const struct fs_parameter_spec *parameters; struct dentry *(*mount) (struct file_system_type *, int,
@@ -140,7 +148,7 @@ members are defined: "msdos" and so on ``fs_flags`` - various flags (i.e. FS_REQUIRES_DEV, FS_NO_DCACHE, etc.) + various flags (i.e. FS_REQUIRES_DEV, FS_BINARY_MOUNTDATA, etc.) ``init_fs_context`` Initializes 'struct fs_context' ->ops and ->fs_private fields with
Signature · 1 line
2.43.0
Matthew Wilcox
maintainerQuoted 3 lines · I Hsin Cheng
The structure definition now in the kernel adds macros defining the value of "
fs_flags", and the value "FS_NO_DCACHE" no longer exists, update it to an existing flag value.
What value does it add to duplicate these flag definitions in the documentation? I would not do this.
Documentation/filesystems/vfs.rst members are defined: · line 151
Quoted 6 lines
Documentation/filesystems/vfs.rst +1
-1@@ -140,7 +148,7 @@ members are defined: "msdos" and so on ``fs_flags`` - various flags (i.e. FS_REQUIRES_DEV, FS_NO_DCACHE, etc.) + various flags (i.e. FS_REQUIRES_DEV, FS_BINARY_MOUNTDATA, etc.)
This should be "eg.", not "i.e."
Quoted 8 lines · Matthew Wilcox
Quoted 3 lines · I Hsin Cheng
The structure definition now in the kernel adds macros defining the value of "
fs_flags", and the value "FS_NO_DCACHE" no longer exists, update it to an existing flag value.What value does it add to duplicate these flag definitions in the documentation? I would not do this.
Quoted 8 lines
Documentation/filesystems/vfs.rst members are defined: · line 151
Quoted 6 lines
Documentation/filesystems/vfs.rst +1
-1@@ -140,7 +148,7 @@ members are defined: "msdos" and so on ``fs_flags`` - various flags (i.e. FS_REQUIRES_DEV, FS_NO_DCACHE, etc.) + various flags (i.e. FS_REQUIRES_DEV, FS_BINARY_MOUNTDATA, etc.)This should be "eg.", not "i.e."
Hi Matthew,
Thanks for your kindly reply!
Quoted 2 lines
What value does it add to duplicate these flag definitions in the documentation? I would not do this.
I thought the documentation should follow the exact code as in the kernel, if it only serves as a roughly example, I agree with you then.
Quoted 1 line
This should be "eg.", not "i.e."
Sure, I'll change it and send v2.
Let me know if anything more is needed to be correct, thanks!
Best regards,
I Hsin Cheng