From 6f2d0c6a99c84c6b5d7f5228e236fc6e25f931c1 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 19 Jun 2003 22:25:29 +0000 Subject: [PATCH] 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. --- lustre/obdclass/fsfilt_ext3.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 1.8.3.1