Skip to content

Commit 7cf4bea

Browse files
committed
Merge tag 'for-6.6-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fix from David Sterba: "Fix a bug in chunk size decision that could lead to suboptimal placement and filling patterns" * tag 'for-6.6-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: btrfs: fix stripe length calculation for non-zoned data chunk allocation
2 parents dd72f9c + 8a540e9 commit 7cf4bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/volumes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5109,7 +5109,7 @@ static void init_alloc_chunk_ctl_policy_regular(
51095109
ASSERT(space_info);
51105110

51115111
ctl->max_chunk_size = READ_ONCE(space_info->chunk_size);
5112-
ctl->max_stripe_size = ctl->max_chunk_size;
5112+
ctl->max_stripe_size = min_t(u64, ctl->max_chunk_size, SZ_1G);
51135113

51145114
if (ctl->type & BTRFS_BLOCK_GROUP_SYSTEM)
51155115
ctl->devs_max = min_t(int, ctl->devs_max, BTRFS_MAX_DEVS_SYS_CHUNK);

0 commit comments

Comments
 (0)