Commit b7f6705
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>1 parent c0d2f61 commit b7f6705
2 files changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2806 | 2806 | | |
2807 | 2807 | | |
2808 | 2808 | | |
2809 | | - | |
| 2809 | + | |
2810 | 2810 | | |
2811 | 2811 | | |
2812 | 2812 | | |
| |||
4133 | 4133 | | |
4134 | 4134 | | |
4135 | 4135 | | |
4136 | | - | |
4137 | | - | |
4138 | | - | |
| 4136 | + | |
4139 | 4137 | | |
4140 | 4138 | | |
4141 | 4139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4694 | 4694 | | |
4695 | 4695 | | |
4696 | 4696 | | |
4697 | | - | |
| 4697 | + | |
4698 | 4698 | | |
4699 | 4699 | | |
4700 | 4700 | | |
4701 | 4701 | | |
4702 | | - | |
| 4702 | + | |
4703 | 4703 | | |
4704 | 4704 | | |
4705 | 4705 | | |
| |||
0 commit comments