]> git.hungrycats.org Git - linux/commit
btrfs: introduce extra limits on btrfs_chunk::stripe_len
authorQu Wenruo <wqu@suse.com>
Wed, 21 Oct 2026 03:39:43 +0000 (14:09 +1030)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Oct 2026 20:36:18 +0000 (21:36 +0100)
commitd5cafe12079fdddfd83942c9f48d2b4474b55f13
treecc8d1fdaa76f3e76ef8cf05bbc72b5a2dc66eb5e
parent2187ec9166ea7441f551337b91802d65b2283972
btrfs: introduce extra limits on btrfs_chunk::stripe_len

The new limits are:

- Stripe_len must be no smaller than sectorsize
  As sectorsize is still the minimal unit.

- Stripe_len must be no larger than BTRFS_STRIPE_LEN
  We still have a lot of things requiring on BTRFS_STRIPE_LEN alignment,
  e.g. dev extent and chunk allocation.
  A stripe_len larger than BTRFS_STRIPE_LEN will cause problems for the
  existing chunk allocator.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-checker.c