Josef Bacik 3da40c7b08 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 <jbacik@fb.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
2015-06-22 00:31:26 -04:00
..
2015-04-02 23:47:42 -04:00
2015-04-02 23:47:42 -04:00
2014-09-11 11:15:15 -04:00
2015-04-02 23:47:42 -04:00
2015-06-12 23:46:33 -04:00
2014-02-20 13:32:10 -05:00
2015-05-02 23:58:32 -04:00