diff options
author | Darrick J. Wong <[email protected]> | 2018-10-30 10:46:33 +1100 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2018-10-30 10:46:33 +1100 |
commit | 4918ef4ea008cd2ff47eb852894e3f9b9047f4f3 (patch) | |
tree | a043f554c7f08bd035e0352e58f88a9fff979bcb /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 65f098e91ffbb64d7ca2ed93b6ab2428a2e34452 (diff) |
xfs: 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 shouldn't be a problem.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions