diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-07-17 19:25:31 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-07-17 19:25:31 -0700 |
| commit | eda597e240b1c8baa993f4ec2ec496aa7c789723 (patch) | |
| tree | 9e943175d1f628e28eaa14d85cad4bdcc38d7275 /include | |
| parent | 2e1972fa2e109548cdb324b3aca0d29096c0ef90 (diff) | |
[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 'include')
| -rw-r--r-- | include/linux/ext3_jbd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ext3_jbd.h b/include/linux/ext3_jbd.h index 27b21821ce74..50caf6875ba4 100644 --- a/include/linux/ext3_jbd.h +++ b/include/linux/ext3_jbd.h @@ -30,10 +30,11 @@ #define EXT3_SINGLEDATA_TRANS_BLOCKS 8U -/* Extended attributes may touch two data buffers, two bitmap buffers, - * and two group and summaries. */ +/* Extended attribute operations touch at most two data buffers, + * two bitmap buffers, and two group summaries, in addition to the inode + * and the superblock, which are already accounted for. */ -#define EXT3_XATTR_TRANS_BLOCKS 8 +#define EXT3_XATTR_TRANS_BLOCKS 6U /* Define the minimum size for a transaction which modifies data. This * needs to take into account the fact that we may end up modifying two |
