]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
vfs: bug on rehash of hashed dentry
authorSage Weil <sage@newdream.net>
Fri, 19 Mar 2010 20:17:36 +0000 (13:17 -0700)
committerSage Weil <sage@newdream.net>
Thu, 10 Jun 2010 21:10:11 +0000 (14:10 -0700)
fs/dcache.c

index d96047b4a633a86cb7ae711cb29362ac6cda061a..437c93cd861484c0e5e81e86885b27a800575f38 100644 (file)
@@ -1563,6 +1563,7 @@ static void _d_rehash(struct dentry * entry)
  
 void d_rehash(struct dentry * entry)
 {
+       BUG_ON(!d_unhashed(entry));
        spin_lock(&dcache_lock);
        spin_lock(&entry->d_lock);
        _d_rehash(entry);