]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove find_raid56_stripe_len
authorNikolay Borisov <nborisov@suse.com>
Fri, 14 Jul 2017 06:55:41 +0000 (09:55 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:03 +0000 (16:12 +0200)
commit9e52088b7070d6a0f0e6aef373b5e0e32c9833ad
tree4bd66124d91798011bfb44945d53b6c90c408d23
parent407fbf31e90d153319bec32c64067fba9b4e1c54
btrfs: Remove find_raid56_stripe_len

find_raid56_stripe_len statically returns SZ_64K which equals BTRFS_STRIPE_LEN.
It's sole caller is __btrfs_alloc_chunk and it assigns the return value to ai
variable which is already set to BTRFS_STRIPE_LEN. So remove the function
invocation altogether and remove the function itself. Also remove the variable
since it's only aliasing BTRFS_STRIPE_LEN and use the define directly. Use
the occassion to simplify the rounding down of stripe_size now that the value
we want it to align is a power of 2.

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