From: Al Viro Date: Mon, 24 Feb 2025 03:21:14 +0000 (-0500) Subject: debugfs: use DCACHE_DONTCACHE X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82a3c881cde5af76ad700e744dac9ab3ba942d18;p=thirdparty%2Fkernel%2Flinux.git debugfs: use DCACHE_DONTCACHE Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 29c5ec3823427..441e3547a4f37 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -258,7 +258,6 @@ static struct vfsmount *debugfs_automount(struct path *path) } static const struct dentry_operations debugfs_dops = { - .d_delete = always_delete_dentry, .d_release = debugfs_release_dentry, .d_automount = debugfs_automount, }; @@ -274,6 +273,7 @@ static int debugfs_fill_super(struct super_block *sb, struct fs_context *fc) sb->s_op = &debugfs_super_operations; set_default_d_op(sb, &debugfs_dops); + sb->s_d_flags |= DCACHE_DONTCACHE; debugfs_apply_options(sb);