From 633115bae44e7b615b945c61cabf78fc9a266f3b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 21 May 2012 18:48:10 -0700 Subject: [PATCH] --- yaml --- r: 302644 b: refs/heads/master c: 2e321806b681b1920b6dfa7d81bbe3d312fe1d19 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/dcache.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d55de8f7d061..a0f947f26eab 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c23ddf7857bdb2e8001b0a058603497c765a580d +refs/heads/master: 2e321806b681b1920b6dfa7d81bbe3d312fe1d19 diff --git a/trunk/fs/dcache.c b/trunk/fs/dcache.c index a7675e0109f0..8c1ab8fb5012 100644 --- a/trunk/fs/dcache.c +++ b/trunk/fs/dcache.c @@ -1877,6 +1877,8 @@ struct dentry *__d_lookup_rcu(const struct dentry *parent, seq = raw_seqcount_begin(&dentry->d_seq); if (dentry->d_parent != parent) continue; + if (d_unhashed(dentry)) + continue; *seqp = seq; if (unlikely(parent->d_flags & DCACHE_OP_COMPARE)) {