Skip to content

Commit

Permalink
vfs: use the predefined d_unhashed inline function instead
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Denis Cheng authored and Linus Torvalds committed Oct 17, 2007
1 parent db8906d commit f77e349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ static void d_move_locked(struct dentry * dentry, struct dentry * target)
}

/* Move the dentry to the target hash queue, if on different bucket */
if (dentry->d_flags & DCACHE_UNHASHED)
if (d_unhashed(dentry))
goto already_unhashed;

hlist_del_rcu(&dentry->d_hash);
Expand Down

0 comments on commit f77e349

Please sign in to comment.