From: Zheng Liu Date: Mon, 28 Jan 2013 14:21:37 +0000 (-0500) Subject: ext4: add punching hole support for non-extent-mapped files X-Git-Tag: v3.9-rc1~64^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bad6fc813a3a5300f51369c39d315679fd88c72;p=pandora-kernel.git ext4: add punching hole support for non-extent-mapped files This patch add supports for indirect file support punching hole. It is almost the same as ext4_ext_punch_hole. First, we invalidate all pages between this hole, and then we try to deallocate all blocks of this hole. A recursive function is used to handle deallocation of blocks. In this function, it iterates over the entries in inode's i_blocks or indirect blocks, and try to free the block for each one of them. After applying this patch, xfstest #255 will not pass w/o extent because indirect-based file doesn't support unwritten extents. Signed-off-by: Zheng Liu Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed