diff options
| author | Jan Kara <jack@suse.cz> | 2005-06-24 01:01:04 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:05:20 -0400 |
| commit | 1f54587bea84a35125c95e19b98c2f464c50871b (patch) | |
| tree | 42f2467d6892be821271a2257e1259922bdafd45 /fs/ext3/acl.c | |
| parent | 4e5117ba0af4582b6ec9164874f719d7f3f1eb2b (diff) | |
[PATCH] quota: ext3: Improve quota credit estimates
Use improved credits estimates for quota operations. Also reserve a space
for a quota operation in a transaction only if filesystem was mounted with
some quota options.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext3/acl.c')
| -rw-r--r-- | fs/ext3/acl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext3/acl.c b/fs/ext3/acl.c index 133f5aa581bb..3ac38266fc9e 100644 --- a/fs/ext3/acl.c +++ b/fs/ext3/acl.c | |||
| @@ -393,7 +393,8 @@ ext3_acl_chmod(struct inode *inode) | |||
| 393 | int retries = 0; | 393 | int retries = 0; |
| 394 | 394 | ||
| 395 | retry: | 395 | retry: |
| 396 | handle = ext3_journal_start(inode, EXT3_DATA_TRANS_BLOCKS); | 396 | handle = ext3_journal_start(inode, |
| 397 | EXT3_DATA_TRANS_BLOCKS(inode->i_sb)); | ||
| 397 | if (IS_ERR(handle)) { | 398 | if (IS_ERR(handle)) { |
| 398 | error = PTR_ERR(handle); | 399 | error = PTR_ERR(handle); |
| 399 | ext3_std_error(inode->i_sb, error); | 400 | ext3_std_error(inode->i_sb, error); |
| @@ -503,7 +504,7 @@ ext3_xattr_set_acl(struct inode *inode, int type, const void *value, | |||
| 503 | acl = NULL; | 504 | acl = NULL; |
| 504 | 505 | ||
| 505 | retry: | 506 | retry: |
| 506 | handle = ext3_journal_start(inode, EXT3_DATA_TRANS_BLOCKS); | 507 | handle = ext3_journal_start(inode, EXT3_DATA_TRANS_BLOCKS(inode->i_sb)); |
| 507 | if (IS_ERR(handle)) | 508 | if (IS_ERR(handle)) |
| 508 | return PTR_ERR(handle); | 509 | return PTR_ERR(handle); |
| 509 | error = ext3_set_acl(handle, inode, type, acl); | 510 | error = ext3_set_acl(handle, inode, type, acl); |
