mbox series

[0/3] Misc btrfs-progs fixes

Message ID 20191030122227.28496-1-nborisov@suse.com (mailing list archive)
Headers show
Series Misc btrfs-progs fixes | expand

Message

Nikolay Borisov Oct. 30, 2019, 12:22 p.m. UTC
Here are 2 cleanups and 1 minor fix for mkfs. The gist of the fix is to ensure 
sub_stripes is always set to 1 when mkfs creates blockgroups with alloc profile 
different than RAID10. This what kernels does. 

The other 2 patches are simple cleanups which reduce the number of arguments 
of btrfs_alloc_data_chunk. 

Nikolay Borisov (3):
  btrfs-progs: Initialize sub_stripes to 1 in btrfs_alloc_data_chunk
  btrfs-progs: Remove type argument from btrfs_alloc_data_chunk
  btrfs-progs: Remove convert param from btrfs_alloc_data_chunk

 convert/main.c |  4 +---
 volumes.c      | 52 ++++++++++++++++++----------------------------------
 volumes.h      |  3 +--
 3 files changed, 20 insertions(+), 39 deletions(-)

Comments

David Sterba Nov. 15, 2019, 12:22 p.m. UTC | #1
On Wed, Oct 30, 2019 at 02:22:24PM +0200, Nikolay Borisov wrote:
> Here are 2 cleanups and 1 minor fix for mkfs. The gist of the fix is to ensure 
> sub_stripes is always set to 1 when mkfs creates blockgroups with alloc profile 
> different than RAID10. This what kernels does. 
> 
> The other 2 patches are simple cleanups which reduce the number of arguments 
> of btrfs_alloc_data_chunk. 
> 
> Nikolay Borisov (3):
>   btrfs-progs: Initialize sub_stripes to 1 in btrfs_alloc_data_chunk
>   btrfs-progs: Remove type argument from btrfs_alloc_data_chunk
>   btrfs-progs: Remove convert param from btrfs_alloc_data_chunk

Added to devel, thanks.