Whamcloud - gitweb
b=6285
authortappro <tappro>
Thu, 23 Jun 2005 20:32:16 +0000 (20:32 +0000)
committertappro <tappro>
Thu, 23 Jun 2005 20:32:16 +0000 (20:32 +0000)
 - make smfs_rmdir behaves like vfs_rmdir

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;