aboutsummaryrefslogtreecommitdiff
path: root/fs/anon_inodes.c
diff options
context:
space:
mode:
authorYongqiang Yang <xiaoqiangnk@gmail.com>2011-04-04 15:40:24 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-14 16:53:12 -0700
commita1c2e79db1bd2aff99c3ea1beca82b9809cc30c1 (patch)
tree34dd2647bd592ed7b39275520ab7ff70ecc73b7b /fs/anon_inodes.c
parenta12a5668aac5294b00efe15790abbd47587ef61d (diff)
ext4: fix credits computing for indirect mapped files
commit 5b41395fcc0265fc9f193aef9df39ce49d64677c upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/anon_inodes.c')
0 files changed, 0 insertions, 0 deletions