diff options
author | Christoph Hellwig <[email protected]> | 2023-07-24 06:26:53 -0700 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-08-10 16:59:34 +0200 |
commit | effa24f689ce0948f68c754991a445a8d697d3a8 (patch) | |
tree | 47e1edff6b804212e4ba636b55a5f7f87e4dc12a /scripts/generate_rust_analyzer.py | |
parent | fc1f91b9231a28fba333f931a031bf776bc6ef0e (diff) |
btrfs: don't stop integrity writeback too early
extent_write_cache_pages stops writing pages as soon as nr_to_write hits
zero. That is the right thing for opportunistic writeback, but incorrect
for data integrity writeback, which needs to ensure that no dirty pages
are left in the range. Thus only stop the writeback for WB_SYNC_NONE
if nr_to_write hits 0.
This is a port of write_cache_pages changes in commit 05fe478dd04e
("mm: write_cache_pages integrity fix").
Note that I've only trigger the problem with other changes to the btrfs
writeback code, but this condition seems worthwhile fixing anyway.
CC: [email protected] # 4.14+
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: David Sterba <[email protected]>
[ updated comment ]
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions