From f77e34987070a20e4b3e06b868cb39eb73670467 Mon Sep 17 00:00:00 2001 From: Denis Cheng Date: Tue, 16 Oct 2007 23:30:11 -0700 Subject: [PATCH] vfs: use the predefined d_unhashed inline function instead Signed-off-by: Denis Cheng Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/dcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dcache.c b/fs/dcache.c index 42d290be0a..5489b2d98a 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -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); -- 2.39.5