diff options
author | Christoph Hellwig <hch@lst.de> | 2023-06-28 17:31:43 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-08-21 14:52:16 +0200 |
commit | 256b0cf90d2a052f546bc118784574298c5818f2 (patch) | |
tree | a5a1e93ac8e538013f133a6c856171fbe82f7ef9 /mm/page-writeback.c | |
parent | btrfs: don't redirty locked_page in run_delalloc_zoned (diff) | |
download | linux-256b0cf90d2a052f546bc118784574298c5818f2.tar.xz linux-256b0cf90d2a052f546bc118784574298c5818f2.zip |
btrfs: fix zoned handling in submit_uncompressed_range
For zoned file systems we need to use run_delalloc_zoned to submit
writeback, as we need to write out partial allocations when running into
zone active limits.
submit_uncompressed_range currently always calls cow_file_range to
allocate blocks and thus misses the active zone limits handling. Fix
this by passing the pages_dirty argument to run_delalloc_zoned and always
using it from submit_uncompressed_range as it does the right thing for
zoned and non-zoned file systems.
To account for the fact that run_delalloc_zoned is now also used for
non-zoned file systems rename it to run_delalloc_cow, and add comment
describing it.
Fixes: 42c011000963 ("btrfs: zoned: introduce dedicated data write path for zoned filesystems")
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions