]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: fix placement of unlikely() in btrfs_insert_one_raid_extent()
authorMark Harmstone <mark@harmstone.com>
Wed, 18 Feb 2026 12:41:00 +0000 (12:41 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:58 +0000 (18:55 +0200)
commitb6193a891653efcd8d6d39610ace204e157bed00
tree75c9e179adbeb7dcf78a425dfec1acc5da7dfc03
parent2c4648a39b23af5516df6509c856238d84693b78
btrfs: fix placement of unlikely() in btrfs_insert_one_raid_extent()

Fix the unlikely added to btrfs_insert_one_raid_extent() by commit
a929904cf73b65 ("btrfs: add unlikely annotations to branches leading to
transaction abort"): the exclamation point is in the wrong place, so we
are telling the compiler that allocation failure is actually expected.

Reviewed-by: Filipe Manana <fdmanana@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/raid-stripe-tree.c