Skip to content

Commit ef69f05

Browse files
author
Al Viro
committed
__d_unalias() doesn't use inode argument
... and hasn't since 2015. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent f9f677c commit ef69f05

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/dcache.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,8 +3045,7 @@ struct dentry *d_ancestor(struct dentry *p1, struct dentry *p2)
30453045
* Note: If ever the locking in lock_rename() changes, then please
30463046
* remember to update this too...
30473047
*/
3048-
static int __d_unalias(struct inode *inode,
3049-
struct dentry *dentry, struct dentry *alias)
3048+
static int __d_unalias(struct dentry *dentry, struct dentry *alias)
30503049
{
30513050
struct mutex *m1 = NULL;
30523051
struct rw_semaphore *m2 = NULL;
@@ -3127,7 +3126,7 @@ struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)
31273126
inode->i_sb->s_id);
31283127
} else if (!IS_ROOT(new)) {
31293128
struct dentry *old_parent = dget(new->d_parent);
3130-
int err = __d_unalias(inode, dentry, new);
3129+
int err = __d_unalias(dentry, new);
31313130
write_sequnlock(&rename_lock);
31323131
if (err) {
31333132
dput(new);

0 commit comments

Comments
 (0)