Whamcloud - gitweb
Add an extra reservation, because we compound the directory unlink with
authoradilger <adilger>
Thu, 19 Jun 2003 22:25:29 +0000 (22:25 +0000)
committeradilger <adilger>
Thu, 19 Jun 2003 22:25:29 +0000 (22:25 +0000)
the inode truncate in mds_reint_unlink(), which ext3 doesn't do.  We
need enough blocks after the truncate to do the rest of the unlink.

lustre/obdclass/fsfilt_ext3.c

index 169e69a..7b10f5e 100644 (file)
@@ -66,6 +66,8 @@ static void *fsfilt_ext3_start(struct inode *inode, int op)
 
         switch(op) {
         case FSFILT_OP_RMDIR:
+                /* The MDS does a compound unlink + truncate */
+                nblocks += EXT3_DELETE_TRANS_BLOCKS;
         case FSFILT_OP_UNLINK:
                 nblocks += EXT3_DELETE_TRANS_BLOCKS;
                 break;