diff options
| author | Christoph Hellwig <[email protected]> | 2024-10-08 08:59:21 +0000 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2024-10-15 09:37:42 +0000 |
| commit | f6f91d290c8b9da6e671bd15f306ad2d0e635a04 (patch) | |
| tree | 9e70de234d7f2a6c8cac0a593ee8ea2871e6ec9a /rust/helpers/blk.c | |
| parent | xfs: set IOMAP_F_SHARED for all COW fork allocations (diff) | |
| download | kernel-f6f91d290c8b9da6e671bd15f306ad2d0e635a04.tar.gz kernel-f6f91d290c8b9da6e671bd15f306ad2d0e635a04.zip | |
xfs: punch delalloc extents from the COW fork for COW writes
When ->iomap_end is called on a short write to the COW fork it needs to
punch stale delalloc data from the COW fork and not the data fork.
Ensure that IOMAP_F_NEW is set for new COW fork allocations in
xfs_buffered_write_iomap_begin, and then use the IOMAP_F_SHARED flag
in xfs_buffered_write_delalloc_punch to decide which fork to punch.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'rust/helpers/blk.c')
0 files changed, 0 insertions, 0 deletions
