]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: btrfs_check_super_valid: Allow 4096 as stripesize
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Thu, 16 Jun 2016 16:37:58 +0000 (22:07 +0530)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Jun 2016 16:32:49 +0000 (18:32 +0200)
commit0664e0a6efee81ae789310701a2694364d06cfdb
tree0e2bedc70d8b60958fb49fcb3392e95efacf39eb
parent960ec5f6a5e765744d996480acacb874e753071b
Btrfs: btrfs_check_super_valid: Allow 4096 as stripesize

Older btrfs-progs/mkfs.btrfs sets 4096 as the stripesize. Hence
restricting stripesize to be equal to sectorsize would cause super block
validation to return an error on architectures where PAGE_SIZE is not
equal to 4096.

Hence as a workaround, this commit allows stripesize to be set to 4096
bytes.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c