]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: volumes: Cleanup stripe size calculation
authorQu Wenruo <wqu@suse.com>
Wed, 31 Jan 2018 06:16:34 +0000 (14:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:37 +0000 (15:09 +0200)
commitdbd16a4cb9bd5b8ed70085afb14160e1572808b3
tree1859bcfe0b38445982bad48e8563c1ec5650789b
parenta79cb1b3f89e0263baa536f7cea7b2530fada50b
btrfs: volumes: Cleanup stripe size calculation

Cleanup the following things:
1) open coded SZ_16M round up
2) use min() to replace open-coded size comparison
3) code style

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Gu Jinxiang <gujx@cn.fujitsu.com>
[ reformat comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c