]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: allow mounting filesystems with remap-tree incompat flag
authorMark Harmstone <mark@harmstone.com>
Wed, 7 Jan 2026 14:09:08 +0000 (14:09 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:54:35 +0000 (07:54 +0100)
commit8620da16fb6be1fd9906374fa1c763a10c6918df
treed3de7563e93b361004cd2f7c50751a5ffaf8096c
parent7977011460cffc6f5a0cd830584c832c4aa07076
btrfs: allow mounting filesystems with remap-tree incompat flag

If we encounter a filesystem with the remap-tree incompat flag set,
validate its compatibility with the other flags, and load the remap tree
using the values that have been added to the superblock.

The remap-tree feature depends on the free-space-tree, but no-holes and
block-group-tree have been made dependencies to reduce the testing
matrix. Similarly I'm not aware of any reason why mixed-bg and zoned would be
incompatible with remap-tree, but this is blocked for the time being
until it can be fully tested.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/Kconfig
fs/btrfs/accessors.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/fs.h
fs/btrfs/transaction.c
include/uapi/linux/btrfs_tree.h