]> Gentwo Git Trees - linux/.git/commit
btrfs: zoned: refine extent allocator hint selection
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 16 Jul 2025 02:13:15 +0000 (11:13 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Sep 2025 08:54:31 +0000 (10:54 +0200)
commit0d703963d297964451783e1a0688ebdf74cd6151
tree5e6b6966984de814d047b86a5a4d079be77293e8
parentf07b855c56b1fd724c018c1d4ff8d319b9afd5a9
btrfs: zoned: refine extent allocator hint selection

The hint block group selection in the extent allocator is wrong in the
first place, as it can select the dedicated data relocation block group for
the normal data allocation.

Since we separated the normal data space_info and the data relocation
space_info, we can easily identify a block group is for data relocation or
not. Do not choose it for the normal data allocation.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c