diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-05-23 09:43:31 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-05-27 08:49:28 -0700 |
commit | a5949d3faedf492fa7863b914da408047ab46eb0 (patch) | |
tree | ecfae2d1263b9a6b5999c6351c7bd3bbb0d44543 /include/linux/overflow.h | |
parent | 590b16516ef38e2e88674fe0a0cea39927a8ee2e (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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions