diff options
author | Yongqiang Yang <xiaoqiangnk@gmail.com> | 2011-04-04 23:40:24 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-04-04 23:40:24 +0400 |
commit | 5b41395fcc0265fc9f193aef9df39ce49d64677c (patch) | |
tree | 3e9ce0bc590399f78808fce8279d04c61301beb8 /fs/ext4/hash.c | |
parent | 21f976975cbecbdaf23ceeacc1cab2b1c05a028e (diff) | |
download | linux-5b41395fcc0265fc9f193aef9df39ce49d64677c.tar.xz |
ext4: fix credits computing for indirect mapped files
When writing a contiguous set of blocks, two indirect blocks could be
needed depending on how the blocks are aligned, so we need to increase
the number of credits needed by one.
[ Also fixed a another bug which could further underestimate the
number of journal credits needed by 1; the code was using integer
division instead of DIV_ROUND_UP() -- tytso]
Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/hash.c')
0 files changed, 0 insertions, 0 deletions