mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-08 15:39:15 +08:00
btrfs: turn remove argument of modify_free_space_bitmap() to boolean
The argument is used as a boolean, so switch its type from int to bool. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
3887067f55
commit
a8da443c9b
@@ -606,7 +606,7 @@ static int free_space_next_bitmap(struct btrfs_trans_handle *trans,
|
||||
static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_block_group *block_group,
|
||||
struct btrfs_path *path,
|
||||
u64 start, u64 size, int remove)
|
||||
u64 start, u64 size, bool remove)
|
||||
{
|
||||
struct btrfs_root *root = btrfs_free_space_root(block_group);
|
||||
struct btrfs_key key;
|
||||
@@ -812,7 +812,7 @@ int __btrfs_remove_from_free_space_tree(struct btrfs_trans_handle *trans,
|
||||
|
||||
if (flags & BTRFS_FREE_SPACE_USING_BITMAPS) {
|
||||
return modify_free_space_bitmap(trans, block_group, path,
|
||||
start, size, 1);
|
||||
start, size, true);
|
||||
} else {
|
||||
return remove_free_space_extent(trans, block_group, path,
|
||||
start, size);
|
||||
@@ -1000,7 +1000,7 @@ int __btrfs_add_to_free_space_tree(struct btrfs_trans_handle *trans,
|
||||
|
||||
if (flags & BTRFS_FREE_SPACE_USING_BITMAPS) {
|
||||
return modify_free_space_bitmap(trans, block_group, path,
|
||||
start, size, 0);
|
||||
start, size, false);
|
||||
} else {
|
||||
return add_free_space_extent(trans, block_group, path, start,
|
||||
size);
|
||||
|
||||
Reference in New Issue
Block a user