aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2023-06-28 15:31:23 +0000
committerDavid Sterba <[email protected]>2023-08-21 12:52:14 +0000
commit53ffb30a784d30db4d4cd074b4da46fa2472ab60 (patch)
treee32f349ccb0f94d96f3ce0ecf9e97273a6b062d3 /fs/btrfs/ordered-data.c
parentbtrfs: pass a flags argument to cow_file_range (diff)
downloadkernel-53ffb30a784d30db4d4cd074b4da46fa2472ab60.tar.gz
kernel-53ffb30a784d30db4d4cd074b4da46fa2472ab60.zip
btrfs: don't create inline extents in fallback_to_cow
For NOCOW files, run_delalloc_nocow can still fall back to COW allocations when required and calls to fallback_to_cow helper for that. For such an allocation we can have multiple ordered_extents for existing extents that NOCOW overwrites and new allocations that fallback_to_cow creates. If one of the new extents is an inline extent, the writepages could would have to avoid normal page writeback for them as indicated by the page_started return argument, which run_delalloc_nocow can't return. Fix this by never creating inline extents from fallback_to_cow. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
0 files changed, 0 insertions, 0 deletions