OSDN Git Service

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)
commitf594f13c194e50186d52e7995c9b7fbdd315a8dc
tree423a238c6d647fcd22f1560b87ac12bd04f9d809
parentabed4aaae4f71a7bcdbe90a65319b6e772a2689d
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