diff options
author | Jan Kara <jack@suse.cz> | 2013-04-09 12:39:26 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-09 12:39:26 -0400 |
commit | f45a5ef91bef7e02149a216ed6dc3fcdd8b38268 (patch) | |
tree | f42e693444d3f2456a7c0a002cffdc1f31f6eeea /fs/ext4 | |
parent | eabe0444df90b0cdfa7fdc4f0b4b253f0a498ff7 (diff) |
ext4: improve credit estimate for EXT4_SINGLEDATA_TRANS_BLOCKS
Estimate of 27 credits for allocation of a block in extent based inode
is unnecessarily high. We can easily argue 20 is enough.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/ext4_jbd2.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h index aeed0bac693b..c8c6885406db 100644 --- a/fs/ext4/ext4_jbd2.h +++ b/fs/ext4/ext4_jbd2.h | |||
@@ -29,11 +29,13 @@ | |||
29 | * block to complete the transaction. | 29 | * block to complete the transaction. |
30 | * | 30 | * |
31 | * For extents-enabled fs we may have to allocate and modify up to | 31 | * For extents-enabled fs we may have to allocate and modify up to |
32 | * 5 levels of tree + root which are stored in the inode. */ | 32 | * 5 levels of tree, data block (for each of these we need bitmap + group |
33 | * summaries), root which is stored in the inode, sb | ||
34 | */ | ||
33 | 35 | ||
34 | #define EXT4_SINGLEDATA_TRANS_BLOCKS(sb) \ | 36 | #define EXT4_SINGLEDATA_TRANS_BLOCKS(sb) \ |
35 | (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS) \ | 37 | (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS) \ |
36 | ? 27U : 8U) | 38 | ? 20U : 8U) |
37 | 39 | ||
38 | /* Extended attribute operations touch at most two data buffers, | 40 | /* Extended attribute operations touch at most two data buffers, |
39 | * two bitmap buffers, and two group summaries, in addition to the inode | 41 | * two bitmap buffers, and two group summaries, in addition to the inode |