summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_trans_space.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-08-30 15:44:38 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-10-28 21:00:36 -0700
commite32305be59f0fad5cf67b7ffec7e20af604433b1 (patch)
treeca198a2fbd016effefdac62aaaa52dd0ba74dfbe /fs/xfs/libxfs/xfs_trans_space.h
parent17ae18072ba4653d4245b67ca6d244f3e5bd5049 (diff)
xfs: force writes to delalloc regions to unwritten
When writing to a delalloc region in the data fork, commit the new allocations (of the da reservation) as unwritten so that the mappings are only marked written once writeback completes successfully. This fixes the problem of stale data exposure if the system goes down during targeted writeback of a specific region of a file, as tested by generic/042. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_trans_space.h')
0 files changed, 0 insertions, 0 deletions