]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Force stripesize to the value of sectorsize
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Thu, 23 Jun 2016 09:46:44 +0000 (15:16 +0530)
committerChris Mason <clm@fb.com>
Thu, 23 Jun 2016 17:44:42 +0000 (10:44 -0700)
commiteb8971515ea6c9e8fa2e5f04eccdef0f1c9eba96
tree0fcd75971843a7db70550df761c7028599192a80
parentcde23ac69de3caa8f9680ed82a78a55a8ebbe698
Btrfs: Force stripesize to the value of sectorsize

Btrfs code currently assumes stripesize to be same as
sectorsize. However Btrfs-progs (until commit
df05c7ed455f519e6e15e46196392e4757257305) has been setting
btrfs_super_block->stripesize to a value of 4096.

This commit makes sure that the value of btrfs_super_block->stripesize
is a power of 2. Later, it unconditionally sets btrfs_root->stripesize
to sectorsize.

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