aboutsummaryrefslogtreecommitdiffstats
path: root/fs/adfs/super.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2025-02-24 00:39:47 +0000
committerAl Viro <[email protected]>2025-06-11 02:21:16 +0000
commit05fb0e666495cda068c068a681ecbbf8e57324d0 (patch)
tree1d7e3bde874c7710b24909b20e8042c57151ea92 /fs/adfs/super.c
parentfuse: no need for special dentry_operations for root dentry (diff)
downloadkernel-05fb0e666495cda068c068a681ecbbf8e57324d0.tar.gz
kernel-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 <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/adfs/super.c')
-rw-r--r--fs/adfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c
index 017c48a80203..fdccdbbfc213 100644
--- a/fs/adfs/super.c
+++ b/fs/adfs/super.c
@@ -397,7 +397,7 @@ static int adfs_fill_super(struct super_block *sb, struct fs_context *fc)
if (asb->s_ftsuffix)
asb->s_namelen += 4;
- sb->s_d_op = &adfs_dentry_operations;
+ set_default_d_op(sb, &adfs_dentry_operations);
root = adfs_iget(sb, &root_obj);
sb->s_root = d_make_root(root);
if (!sb->s_root) {