]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: consolidate bitmap_clear_bits/__bitmap_clear_bits
authorNikolay Borisov <nborisov@suse.com>
Tue, 23 Nov 2021 12:44:19 +0000 (14:44 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:50 +0000 (15:09 +0100)
commit3f0aa628bb9202ad2a52000c41d1f719790dacf9
tree423a238c6d647fcd22f1560b87ac12bd04f9d809
parent3094ab68e68e8b4e40994850bced1c5b08568f5c
btrfs: consolidate bitmap_clear_bits/__bitmap_clear_bits

The only difference is the former adjusts btrfs_free_space::bytes
member. Consolidate the two function into 1 and add a bool parameter
which controls whether the adjustment is made or not. No functional
changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c