btrfs: use has_single_bit_set for clarity
authorDavid Sterba <dsterba@suse.com>
Tue, 1 Oct 2019 17:44:42 +0000 (19:44 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:50 +0000 (12:46 +0100)
commitc1499166d10ae734b5ec5cc7982bd9b9ee7f9fe6
treecae2b40f5c2854fbfc478d7399c40102699c6cfb
parent79c8264e443471eb2748c93680acce54d14d2225
btrfs: use has_single_bit_set for clarity

Replace is_power_of_2 with the helper that is self-documenting and
remove the open coded call in alloc_profile_is_valid.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-checker.c
fs/btrfs/volumes.c