diff options
author | Josef Bacik <jbacik@fb.com> | 2015-06-22 07:31:26 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-04-28 21:02:18 +0300 |
commit | 43626ce2bc6f74bcd2564ce569717854f93f2eaf (patch) | |
tree | 267e63f2cb1e01f5c863a80f592a76e89aff35bd /virt | |
parent | d903e98eff2e520517c9e379f59ba8faee2631fb (diff) | |
download | linux-43626ce2bc6f74bcd2564ce569717854f93f2eaf.tar.xz |
ext4: only call ext4_truncate when size <= isize
commit 3da40c7b089810ac9cf2bb1e59633f619f3a7312 upstream.
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>
[bwh: Backported to 3.16 as dependency of commit ea3d7209ca01
"ext4: fix races between page faults and hole punching":
- Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions