Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c62b1e1
)
Add an extra reservation, because we compound the directory unlink with
author
adilger
<adilger>
Thu, 19 Jun 2003 22:25:29 +0000
(22:25 +0000)
committer
adilger
<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
patch
|
blob
|
history
diff --git
a/lustre/obdclass/fsfilt_ext3.c
b/lustre/obdclass/fsfilt_ext3.c
index
169e69a
..
7b10f5e
100644
(file)
--- 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;