aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-02-23 19:39:47 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2025-06-10 22:21:16 -0400
commit05fb0e666495cda068c068a681ecbbf8e57324d0 (patch)
tree1d7e3bde874c7710b24909b20e8042c57151ea92 /Documentation/filesystems
parentfuse: no need for special dentry_operations for root dentry (diff)
downloadwireguard-linux-05fb0e666495cda068c068a681ecbbf8e57324d0.tar.xz
wireguard-linux-05fb0e666495cda068c068a681ecbbf8e57324d0.zip
new helper: set_default_d_op()
... to be used instead of manually assigning to ->s_d_op. All in-tree filesystem converted (and field itself is renamed, so any out-of-tree ones in need of conversion will be caught by compiler). Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r--Documentation/filesystems/porting.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst
index 3616d7161dab..b16139e91942 100644
--- a/Documentation/filesystems/porting.rst
+++ b/Documentation/filesystems/porting.rst
@@ -1249,3 +1249,10 @@ Using try_lookup_noperm() will require linux/namei.h to be included.
Calling conventions for ->d_automount() have changed; we should *not* grab
an extra reference to new mount - it should be returned with refcount 1.
+
+---
+
+**mandatory**
+
+If your filesystem sets the default dentry_operations, use set_default_d_op()
+rather than manually setting sb->s_d_op.