diff options
author | Jan Kara <jack@suse.cz> | 2015-05-02 23:58:32 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-05-02 23:58:32 -0400 |
commit | 2c869b262a10ca99cb866d04087d75311587a30c (patch) | |
tree | 42031363a2328d0c0c3591929569fd699c7ee7e6 /drivers/net/can/grcan.c | |
parent | 280227a75b56ab5d35854f3a77ef74a7ad56a203 (diff) | |
download | op-kernel-dev-2c869b262a10ca99cb866d04087d75311587a30c.zip op-kernel-dev-2c869b262a10ca99cb866d04087d75311587a30c.tar.gz |
ext4: fix growing of tiny filesystems
The estimate of necessary transaction credits in ext4_flex_group_add()
is too pessimistic. It reserves credit for sb, resize inode, and resize
inode dindirect block for each group added in a flex group although they
are always the same block and thus it is enough to account them only
once. Also the number of modified GDT block is overestimated since we
fit EXT4_DESC_PER_BLOCK(sb) descriptors in one block.
Make the estimation more precise. That reduces number of requested
credits enough that we can grow 20 MB filesystem (which has 1 MB
journal, 79 reserved GDT blocks, and flex group size 16 by default).
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'drivers/net/can/grcan.c')
0 files changed, 0 insertions, 0 deletions