From: Jan Kara Date: Thu, 26 Jun 2014 16:28:57 +0000 (-0400) Subject: ext4: Fix block zeroing when punching holes in indirect block files X-Git-Tag: omap-for-v3.16/fixes-rc4~32^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77ea2a4ba657a1ad4fb7c64bc5cdce84b8a132b6;p=pandora-kernel.git 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 Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed