btrfs: subpage: make writer lock utilize bitmap
authorQu Wenruo <wqu@suse.com>
Sat, 17 Feb 2024 06:29:50 +0000 (16:59 +1030)
committerDavid Sterba <dsterba@suse.com>
Tue, 5 Mar 2024 16:13:23 +0000 (17:13 +0100)
commitb086c5bd99c489ee24f6dc57186bcf6b2f253f7c
tree2b51ed4ab9568fafaedc26ffe088623a30429b7e
parent8e7e9c672fd810a099dc2ac92a80e8e95cd5b0dc
btrfs: subpage: make writer lock utilize bitmap

For the writer counter, it's pretty much the same as the reader counter,
and they are exclusive.  So move them to the new locked bitmap.

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