From: Josef Bacik Date: Mon, 22 Jun 2015 04:31:26 +0000 (-0400) Subject: ext4: only call ext4_truncate when size <= isize X-Git-Tag: omap-for-v4.2/fixes-rc1^2~122^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3da40c7b089810ac9cf2bb1e59633f619f3a7312;p=pandora-kernel.git ext4: only call ext4_truncate when size <= isize At LSF we decided that if we truncate up from isize we shouldn't trim fallocated blocks that were fallocated with KEEP_SIZE and are past the new i_size. This patch fixes ext4 to do this. [ Completely reworked patch so that i_disksize would actually get set when truncating up. Also reworked the code for handling truncate so that it's easier to handle. -- tytso ] Signed-off-by: Josef Bacik Signed-off-by: Theodore Ts'o Reviewed-by: Lukas Czerner --- Reading git-diff-tree failed