mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] vfs: use the predefined d_unhashed inline function instead
@ 2007-09-23 11:14 Denis Cheng
  2007-09-25 20:04 ` [PATCH] fs/dcache.c: revamped to use a more straightforward and efficient way to operate Denis Cheng
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Cheng @ 2007-09-23 11:14 UTC (permalink / raw)
  To: Alexander Viro; +Cc: linux-kernel, cr_quan

Signed-off-by: Denis Cheng <crquan@gmail.com>
---
 fs/dcache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/dcache.c b/fs/dcache.c
index 678d39d..62e1800 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1546,7 +1546,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);
-- 
1.5.3


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-01 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-23 11:14 [PATCH] vfs: use the predefined d_unhashed inline function instead Denis Cheng
2007-09-25 20:04 ` [PATCH] fs/dcache.c: revamped to use a more straightforward and efficient way to operate Denis Cheng
2007-10-01 17:25   ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®