diff options
| author | Nikolay Borisov <[email protected]> | 2017-07-14 06:55:41 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2017-08-16 14:12:03 +0000 |
| commit | 500ceed807c4af359be7d08be2e17487ba00e14e (patch) | |
| tree | 4bd66124d91798011bfb44945d53b6c90c408d23 /fs/btrfs/dev-replace.c | |
| parent | btrfs: Use explicit round_down macro in btrfs resize ioctl handler (diff) | |
| download | kernel-500ceed807c4af359be7d08be2e17487ba00e14e.tar.gz kernel-500ceed807c4af359be7d08be2e17487ba00e14e.zip | |
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 <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
