]> git.hungrycats.org Git - linux/commit
btrfs: add flags to give a hint to the chunk allocator
authorKai Krakow <kai@kaishome.de>
Fri, 10 Jul 2026 22:51:17 +0000 (00:51 +0200)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 2 Nov 2026 02:06:49 +0000 (21:06 -0500)
commit31a1a76193436c8e4dbe45f772089149e8741e85
tree14daa6e35895d0d90aeb431afe718f50e524c1aa
parent55006e4fdc4a42dcc8a3731da03fe949d5574583
btrfs: add flags to give a hint to the chunk allocator

Add the following flags to give a hint about which chunk should be
allocated on which a disk.

The following flags are created:

- BTRFS_DEV_ALLOCATION_PREFERRED_DATA
  preferred data chunk, but metadata chunk allowed
- BTRFS_DEV_ALLOCATION_PREFERRED_METADATA
  preferred metadata chunk, but data chunk allowed
- BTRFS_DEV_ALLOCATION_METADATA_ONLY
  only metadata chunk allowed
- BTRFS_DEV_ALLOCATION_DATA_ONLY
  only data chunk allowed

Co-authored-by: Goffredo Baroncelli <kreijack@inwind.it>
Signed-off-by: Kai Krakow <kai@kaishome.de>
include/uapi/linux/btrfs_tree.h