diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-10-30 10:43:16 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2018-10-30 10:43:16 +1100 |
commit | a8a94302c9754d05069ee149cf01df8aa5116aaa (patch) | |
tree | b7aade546f9fa43b095b6bd5f7d7dd50df3972ee /crypto | |
parent | 2587b1f1fae2d992de67e57b519f36e7c9ba70cd (diff) | |
download | linux-a8a94302c9754d05069ee149cf01df8aa5116aaa.tar.gz linux-a8a94302c9754d05069ee149cf01df8aa5116aaa.tar.bz2 linux-a8a94302c9754d05069ee149cf01df8aa5116aaa.zip |
ocfs2: fix pagecache truncation prior to reflink
Prior to remapping blocks, it is necessary to remove pages from the
destination file's page cache. Unfortunately, the truncation is not
aggressive enough -- if page size > block size, we'll end up zeroing
subpage blocks instead of removing them. So, round the start offset
down and the end offset up to page boundaries. We already wrote all
the dirty data so the larger range should be fine.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions