You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Linus Torvalds
parent
db8906da59
commit
f77e349870
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user