]> 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:17:16 +0000 (21:17 -0500)
commitbfa30f0ddca8c443fe656cbf4b1122977d742bd6
treef8adea60a33c4547fe40403736b4961411c5d038
parent585c2252d2b824c08e05c4f0c71afdb6241210f1
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