diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2009-12-09 04:42:15 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-12-09 04:42:15 +0100 |
commit | 5aca07eb7d8f14d90c740834d15ca15277f4820c (patch) | |
tree | 362ab7bb56cf0920ee27bbaf97e2657c022eb4b4 /fs/ext4/extents.c | |
parent | ext4: ext4_get_reserved_space() must return bytes instead of blocks (diff) | |
download | linux-5aca07eb7d8f14d90c740834d15ca15277f4820c.tar.xz linux-5aca07eb7d8f14d90c740834d15ca15277f4820c.zip |
ext4: quota macros cleanup
Currently all quota block reservation macros contains hard-coded "2"
aka MAXQUOTAS value. This is no good because in some places it is not
obvious to understand what does this digit represent. Let's introduce
new macro with self descriptive name.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Acked-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 2c4a9321fb14..5967f18fd7e7 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -2161,7 +2161,7 @@ ext4_ext_rm_leaf(handle_t *handle, struct inode *inode, correct_index = 1; credits += (ext_depth(inode)) + 1; } - credits += 2 * EXT4_QUOTA_TRANS_BLOCKS(inode->i_sb); + credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(inode->i_sb); err = ext4_ext_truncate_extend_restart(handle, inode, credits); if (err) |