]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: only zero partial blocks in ext4_zero_partial_blocks()
authorLukas Czerner <lczerner@redhat.com>
Mon, 1 Jul 2013 12:12:39 +0000 (08:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Jul 2013 12:12:39 +0000 (08:12 -0400)
commit3b1d2ca0b11ec6f0ae99d743e21f32cefb18fd83
treea03fcedb0198f00c02ace3814a3fe27772cf2dcf
parent543b0f8d73413d974a72672c89db70484fdcb696
ext4: only zero partial blocks in ext4_zero_partial_blocks()

Currently if we pass range into ext4_zero_partial_blocks() which covers
entire block we would attempt to zero it even though we should only zero
unaligned part of the block.

Fix this by checking whether the range covers the whole block skip
zeroing if so.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c