OSDN Git Service

btrfs: reduce btrfs_update_block_group alloc argument to bool
authorAnand Jain <anand.jain@oracle.com>
Wed, 13 Oct 2021 06:05:14 +0000 (14:05 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:06 +0000 (19:08 +0200)
commit11b66fa6eef3ecdcc7ae0e990b54b795a237a6e9
treeb1437475a2bffb4ff7ec914d592c8628a245bbec
parenteed2037fc56263fe218548f523c77e7ae3f94a7c
btrfs: reduce btrfs_update_block_group alloc argument to bool

btrfs_update_block_group() accounts for the number of bytes allocated or
freed. Argument @alloc specifies whether the call is for alloc or free.
Convert the argument @alloc type from int to bool.

Reviewed-by: Su Yue <l@damenly.su>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/block-group.h
fs/btrfs/extent-tree.c