btrfs: use common helper instead of open coding a bit test
authorDavid Sterba <dsterba@suse.com>
Fri, 21 Sep 2018 12:26:34 +0000 (14:26 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:35 +0000 (17:23 +0200)
commit818255feece6e2a432328020d78c8a81a153ce65
treef2d95505a0f9ec09399cd98fa788e3b48bdbb0de
parent0110a4c43451533de1ea1bbdc57b5d452f9d8b25
btrfs: use common helper instead of open coding a bit test

The helper does the same math and we take care about the special case
when flags is 0 too.

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