aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/xattr.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-07-17 19:25:31 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-07-17 19:25:31 -0700
commiteda597e240b1c8baa993f4ec2ec496aa7c789723 (patch)
tree9e943175d1f628e28eaa14d85cad4bdcc38d7275 /fs/ext3/xattr.c
parent2e1972fa2e109548cdb324b3aca0d29096c0ef90 (diff)
downloadhistory-eda597e240b1c8baa993f4ec2ec496aa7c789723.tar.gz
[PATCH] Ext3 xattr credits fix for quotas
From: Andreas Gruenbacher <agruen@suse.de> The xattr and acl code are not properly reserving credits for quotas. EXT3_DATA_TRANS_BLOCKS is an overestimate of the credits required including quotas. Make it a little more tight, and use it in the xattr and acl code to be quota safe.
Diffstat (limited to 'fs/ext3/xattr.c')
-rw-r--r--fs/ext3/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c
index 66ed5a09a3e65b..402e30ca81fd11 100644
--- a/fs/ext3/xattr.c
+++ b/fs/ext3/xattr.c
@@ -875,7 +875,7 @@ ext3_xattr_set(struct inode *inode, int name_index, const char *name,
handle_t *handle;
int error, error2;
- handle = ext3_journal_start(inode, EXT3_XATTR_TRANS_BLOCKS);
+ handle = ext3_journal_start(inode, EXT3_DATA_TRANS_BLOCKS);
if (IS_ERR(handle))
error = PTR_ERR(handle);
else