ext4: fix incorect journal credits reservation in ext4_zero_range
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 27 Aug 2014 22:33:49 +0000 (18:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Aug 2014 22:33:49 +0000 (18:33 -0400)
commit69dc9536405213c1d545fcace1fc15c481d00aae
tree97abd78ee9ec00fb80947ef0cb2955b0d28df8d8
parent4631dbf677ded0419fee35ca7408285dabfaef1a
ext4: fix incorect journal credits reservation in ext4_zero_range

Currently we reserve only 4 blocks but in worst case scenario
ext4_zero_partial_blocks() may want to zeroout and convert two
non adjacent blocks.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/extents.c