summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_bmap_util.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-05-21 17:07:05 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-08-16 19:06:17 -0700
commit55013f76ac8dfaf2a238473133cfb39f65b120b3 (patch)
tree1004d8c7299b0c4aae18a3508b7b8ad654ace405 /fs/xfs/xfs_bmap_util.c
parent34b8009914316c69eea79c0be9e80736ea6d0fb4 (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/xfs_bmap_util.c')
0 files changed, 0 insertions, 0 deletions