diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-23 18:11:00 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-25 02:50:29 -0500 |
commit | ef69f0506d8f3a250ac5baa96746e17ae22c67b5 (patch) | |
tree | 4ec104eb51c8ce141df0fa954c00dfc1e2a8b197 /fs/dcache.c | |
parent | f9f677c5f723394170fa838b856602476150948d (diff) |
__d_unalias() doesn't use inode argument
... and hasn't since 2015.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 82d086185703..74b2d073ebbf 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -3045,8 +3045,7 @@ struct dentry *d_ancestor(struct dentry *p1, struct dentry *p2) * Note: If ever the locking in lock_rename() changes, then please * remember to update this too... */ -static int __d_unalias(struct inode *inode, - struct dentry *dentry, struct dentry *alias) +static int __d_unalias(struct dentry *dentry, struct dentry *alias) { struct mutex *m1 = NULL; struct rw_semaphore *m2 = NULL; @@ -3127,7 +3126,7 @@ struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry) inode->i_sb->s_id); } else if (!IS_ROOT(new)) { struct dentry *old_parent = dget(new->d_parent); - int err = __d_unalias(inode, dentry, new); + int err = __d_unalias(dentry, new); write_sequnlock(&rename_lock); if (err) { dput(new); |