]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: fix compat mask in error messages in btrfs_check_features()
authorMark Harmstone <mark@harmstone.com>
Tue, 17 Feb 2026 17:46:41 +0000 (17:46 +0000)
committerDavid Sterba <dsterba@suse.com>
Thu, 26 Feb 2026 14:03:28 +0000 (15:03 +0100)
commit587bb33b10bda645a1028c1737ad3992b3d7cf61
treeef8c15d1e7c1baff3ed795b57060c16475b0a64b
parent1c7e9111f4e6d6d42bc47759c9af1ef91f03ac2c
btrfs: fix compat mask in error messages in btrfs_check_features()

Commit d7f67ac9a928 ("btrfs: relax block-group-tree feature dependency
checks") introduced a regression when it comes to handling unsupported
incompat or compat_ro flags. Beforehand we only printed the flags that
we didn't recognize, afterwards we printed them all, which is less
useful. Fix the error handling so it behaves like it used to.

Fixes: d7f67ac9a928 ("btrfs: relax block-group-tree feature dependency checks")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c