aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/namespaces.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2025-02-24 18:08:52 +0000
committerAl Viro <[email protected]>2025-06-11 02:13:52 +0000
commitec169ef86ba45389b353189cf1fc06461163f667 (patch)
treeebc833429e07e863fe4d30c00fbc7f091fd7ffd7 /fs/proc/namespaces.c
parentnew helper: d_splice_alias_ops() (diff)
downloadkernel-ec169ef86ba45389b353189cf1fc06461163f667.tar.gz
kernel-ec169ef86ba45389b353189cf1fc06461163f667.zip
switch procfs from d_set_d_op() to d_splice_alias_ops()
Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/proc/namespaces.c')
-rw-r--r--fs/proc/namespaces.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c
index c610224faf10..4403a2e20c16 100644
--- a/fs/proc/namespaces.c
+++ b/fs/proc/namespaces.c
@@ -111,8 +111,7 @@ static struct dentry *proc_ns_instantiate(struct dentry *dentry,
ei->ns_ops = ns_ops;
pid_update_inode(task, inode);
- d_set_d_op(dentry, &pid_dentry_operations);
- return d_splice_alias(inode, dentry);
+ return d_splice_alias_ops(inode, dentry, &pid_dentry_operations);
}
static int proc_ns_dir_readdir(struct file *file, struct dir_context *ctx)