]> git.hungrycats.org Git - linux/commit
btrfs: add allocator_hint for no allocation preferred
authorKai Krakow <kai@kaishome.de>
Fri, 10 Jul 2026 22:09:55 +0000 (00:09 +0200)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 2 Nov 2026 02:06:49 +0000 (21:06 -0500)
commit6ead8f126dda123ba7aecb0b629593e71249f594
tree9c3dd6b02febae4c873a204a1e0f975679ea8e23
parentb63eb52872e2dcd8dccf55f558dac73e180644b4
btrfs: add allocator_hint for no allocation preferred

This is useful where you want to avoid new allocations of chunks on a
disk which is going to be removed from the pool anyways, e.g. due to
bad blocks or because it's slow.

The preference applies to non-mixed block groups. Mixed data and
metadata block groups intentionally ignore allocator hints.

v2:
- Clarify that mixed block groups are outside the allocator-hints
  scope.

Signed-off-by: Kai Krakow <kai@kaishome.de>
fs/btrfs/Kconfig
fs/btrfs/sysfs.c
fs/btrfs/volumes.c
include/uapi/linux/btrfs_tree.h