]> 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)
commit94849d08d76291600f7b32529ba59fabcb606289
treeeda35cc110f5c62b95ee1af5987e9fc117cb8194
parent41a8abefca3bb1b7715a398519082239ccec398e
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