linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docs: vfs: Update struct file_system_type
@ 2025-03-23  3:47 I Hsin Cheng
  2025-03-23 14:24 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: I Hsin Cheng @ 2025-03-23  3:47 UTC (permalink / raw)
  To: corbet
  Cc: willy, linux-fsdevel, linux-doc, linux-kernel, skhan,
	linux-kernel-mentees, 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.

Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
---
 Documentation/filesystems/vfs.rst | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Documentation/filesystems/vfs.rst b/Documentation/filesystems/vfs.rst
index 31eea688609a..4e7fa09ffb6d 100644
--- a/Documentation/filesystems/vfs.rst
+++ b/Documentation/filesystems/vfs.rst
@@ -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
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] docs: vfs: Update struct file_system_type
  2025-03-23  3:47 [PATCH] docs: vfs: Update struct file_system_type I Hsin Cheng
@ 2025-03-23 14:24 ` Matthew Wilcox
  2025-03-27 14:29   ` I Hsin Cheng
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2025-03-23 14:24 UTC (permalink / raw)
  To: I Hsin Cheng
  Cc: corbet, linux-fsdevel, linux-doc, linux-kernel, skhan,
	linux-kernel-mentees

On Sun, Mar 23, 2025 at 11:47:25AM +0800, I Hsin Cheng wrote:
> 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.

> @@ -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."

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] docs: vfs: Update struct file_system_type
  2025-03-23 14:24 ` Matthew Wilcox
@ 2025-03-27 14:29   ` I Hsin Cheng
  0 siblings, 0 replies; 3+ messages in thread
From: I Hsin Cheng @ 2025-03-27 14:29 UTC (permalink / raw)
  To: Matthew Wilcox
  Cc: corbet, linux-fsdevel, linux-doc, linux-kernel, skhan,
	linux-kernel-mentees

On Sun, Mar 23, 2025 at 02:24:09PM +0000, Matthew Wilcox wrote:
> On Sun, Mar 23, 2025 at 11:47:25AM +0800, I Hsin Cheng wrote:
> > 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.
> 
> > @@ -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!

> 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.

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-27 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-23  3:47 [PATCH] docs: vfs: Update struct file_system_type I Hsin Cheng
2025-03-23 14:24 ` Matthew Wilcox
2025-03-27 14:29   ` I Hsin Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).