Whamcloud - gitweb
b=6285
[fs/lustre-release.git] / lustre / smfs / dir.c
index fe17f3a..6314a23 100644 (file)
@@ -591,7 +591,9 @@ static int smfs_rmdir(struct inode *dir, struct dentry *dentry)
                 rc = -ENOMEM;
                 goto exit;
         }
-
+        
+        dentry_unhash(cache_dentry);
+        
         handle = smfs_trans_start(dir, FSFILT_OP_RMDIR, NULL);
         if (IS_ERR(handle) ) {
                 rc = -ENOSPC;