瀏覽代碼

vfs: use the predefined d_unhashed inline function instead

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>
Denis Cheng 17 年之前
父節點
當前提交
f77e349870
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/dcache.c

+ 1 - 1
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);