From: adilger Date: Thu, 19 Jun 2003 22:25:29 +0000 (+0000) Subject: Add an extra reservation, because we compound the directory unlink with X-Git-Tag: v1_7_100~1^368~86 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6f2d0c6a99c84c6b5d7f5228e236fc6e25f931c1;p=fs%2Flustre-release.git Add an extra reservation, because we compound the directory unlink with 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. --- diff --git a/lustre/obdclass/fsfilt_ext3.c b/lustre/obdclass/fsfilt_ext3.c index 169e69a..7b10f5e 100644 --- a/lustre/obdclass/fsfilt_ext3.c +++ b/lustre/obdclass/fsfilt_ext3.c @@ -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;