]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb41865796a3d97472bba4705a28ec4cfd5316b4
treef2d95505a0f9ec09399cd98fa788e3b48bdbb0de
parenta31a4e4d7c523a323b37ce778748f49208906806
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