]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: tag error branches as unlikely during super block writes
authorFilipe Manana <fdmanana@suse.com>
Tue, 3 Feb 2026 17:47:33 +0000 (17:47 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:54 +0000 (18:55 +0200)
commitabd5e352b160f251ba1a481c03cdd7653557d0f2
treed342fdbbfd139d623ba39e9647ca6879a1990365
parent3810ab40afa5a0bf85f60b91228045bb9262a420
btrfs: tag error branches as unlikely during super block writes

Mark all the unexpected error checks as unlikely, to make it more clear
they are unexpected and to allow the compiler to potentially generate
better code.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c