summaryrefslogtreecommitdiff
tag namestale-exposure_2020-03-03 (9b8c5a8d427c3cf3299b3b93e68545fb56ce68b9)
tag date2020-03-03 18:48:09 -0800
tagged byDarrick J. Wong <darrick.wong@oracle.com>
tagged objectcommit a54925f228...
xfs: fix stale disk exposure after crash
These two patches try to shrink the window during which a crash during writeback can expose stale disk contents. The first patch causes delalloc reservations to be converted to unwritten extents for any writeback that's going on within EOF. The second patch forces data integrity flushes for any range of a file that's beyond the on-disk EOF to flush everything from the on-disk EOF to the end of the originally specified range. This doesn't fix all the problems, but it gets us closer.