From: Valerie Aurora on
This is a one-line debugging patch which is invaluable when working on
the dcache. Can I get a yea or a nay on this so I can drop it if it
will never go in? Thanks,


From: Jan Blunck <jblunck(a)>
Date: Sun, 17 May 2009 17:29:47 -0700

BUG_ON() rehash of an already hashed dentry. For debugging of
dcache-related development.

Signed-off-by: Jan Blunck <jblunck(a)>
Signed-off-by: Valerie Aurora <vaurora(a)>
Cc: Alexander Viro <viro(a)>
fs/dcache.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/dcache.c b/fs/dcache.c
index 74da947..3d656ab 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1568,6 +1568,7 @@ void d_rehash(struct dentry * entry)
+ BUG_ON(!d_unhashed(entry));

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at