Skip to content

Commit 8cbf74d

Browse files
author
Al Viro
committed
dentry_kill() doesn't need the second argument now
it's 1 in the only remaining caller. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent b2b8019 commit 8cbf74d

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎fs/dcache.c‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,7 @@ static void __dentry_kill(struct dentry *dentry)
500500
* If ref is non-zero, then decrement the refcount too.
501501
* Returns dentry requiring refcount drop, or NULL if we're done.
502502
*/
503-
static struct dentry *
504-
dentry_kill(struct dentry *dentry, int unlock_on_failure)
503+
static struct dentry *dentry_kill(struct dentry *dentry)
505504
__releases(dentry->d_lock)
506505
{
507506
struct inode *inode = dentry->d_inode;
@@ -523,10 +522,8 @@ dentry_kill(struct dentry *dentry, int unlock_on_failure)
523522
return parent;
524523

525524
failed:
526-
if (unlock_on_failure) {
527-
spin_unlock(&dentry->d_lock);
528-
cpu_relax();
529-
}
525+
spin_unlock(&dentry->d_lock);
526+
cpu_relax();
530527
return dentry; /* try again with same dentry */
531528
}
532529

@@ -615,7 +612,7 @@ void dput(struct dentry *dentry)
615612
return;
616613

617614
kill_it:
618-
dentry = dentry_kill(dentry, 1);
615+
dentry = dentry_kill(dentry);
619616
if (dentry)
620617
goto repeat;
621618
}

0 commit comments

Comments
 (0)