diff options
| author | Al Viro <[email protected]> | 2025-02-24 18:08:52 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2025-06-11 02:13:52 +0000 |
| commit | ec169ef86ba45389b353189cf1fc06461163f667 (patch) | |
| tree | ebc833429e07e863fe4d30c00fbc7f091fd7ffd7 /fs/proc/proc_sysctl.c | |
| parent | new helper: d_splice_alias_ops() (diff) | |
| download | kernel-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/proc_sysctl.c')
| -rw-r--r-- | fs/proc/proc_sysctl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index cc9d74a06ff0..7a8bffc03dc8 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -540,9 +540,8 @@ static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry, goto out; } - d_set_d_op(dentry, &proc_sys_dentry_operations); inode = proc_sys_make_inode(dir->i_sb, h ? h : head, p); - err = d_splice_alias(inode, dentry); + err = d_splice_alias_ops(inode, dentry, &proc_sys_dentry_operations); out: if (h) @@ -699,9 +698,9 @@ static bool proc_sys_fill_cache(struct file *file, return false; if (d_in_lookup(child)) { struct dentry *res; - d_set_d_op(child, &proc_sys_dentry_operations); inode = proc_sys_make_inode(dir->d_sb, head, table); - res = d_splice_alias(inode, child); + res = d_splice_alias_ops(inode, child, + &proc_sys_dentry_operations); d_lookup_done(child); if (unlikely(res)) { dput(child); |
