]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Fix block zeroing when punching holes in indirect block files
authorJan Kara <jack@suse.cz>
Thu, 26 Jun 2014 16:28:57 +0000 (12:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 26 Jun 2014 16:28:57 +0000 (12:28 -0400)
commit117b14f53210d552f7d71cb2c5c9cfcba0e19bf3
tree685cfe8f3bb5e96a2be066a88065bf762928a559
parent5ce7cabe38c21659c5de5b447da16f3ab97cebac
ext4: Fix block zeroing when punching holes in indirect block files

free_holes_block() passed local variable as a block pointer
to ext4_clear_blocks(). Thus ext4_clear_blocks() zeroed out this local
variable instead of proper place in inode / indirect block. We later
zero out proper place in inode / indirect block but don't dirty the
inode / buffer again which can lead to subtle issues (some changes e.g.
to inode can be lost).

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/indirect.c