]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: subpage: make end_compressed_bio_writeback() compatible
authorQu Wenruo <wqu@suse.com>
Mon, 27 Sep 2021 07:22:01 +0000 (15:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:04 +0000 (19:08 +0200)
commit94925d8de944a63de3c427e58d8718c963f69a83
treeeda35cc110f5c62b95ee1af5987e9fc117cb8194
parent10490d0c84dc9516d5b5f4dcc077c84c51895133
btrfs: subpage: make end_compressed_bio_writeback() compatible

In end_compressed_writeback() we just clear the full page writeback.
For subpage case, if there are two delalloc ranges in the same page, the
2nd range will trigger a BUG_ON() as the page writeback is already
cleared by previous range.

Fix it by using btrfs_page_clamp_clear_writeback() helper.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c