]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: handle unexpected free-space-tree key types
authorDavid Sterba <dsterba@suse.com>
Tue, 14 Apr 2026 15:30:31 +0000 (17:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 21 Apr 2026 02:02:02 +0000 (04:02 +0200)
commit4d95b9efd783adca472e957b2f576983e789b839
treef53d54e9dc80c2d143ee1e349b3d83dfd86b575c
parent999757231c49376cd1a37308d2c8c4c9932571e1
btrfs: handle unexpected free-space-tree key types

Replace the conditional assertions with proper error handling and
transaction abort if we find an unexpected key type in the free space
tree.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-tree.c