]> Gentwo Git Trees - linux/.git/commit
btrfs: add unlikely annotations to branches leading to EIO
authorDavid Sterba <dsterba@suse.com>
Wed, 17 Sep 2025 17:53:55 +0000 (19:53 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:26 +0000 (08:49 +0200)
commitcc53bd2085c8fa7b199a9a8e10e634b62a6d3fa8
treee109a51a63115104c3769dff9a9beac8acec879b
parent9264d004a6c9788354b45553b9e4fe910e71b387
btrfs: add unlikely annotations to branches leading to EIO

The unlikely() annotation is a static prediction hint that compiler may
use to reorder code out of hot path. We use it elsewhere (namely
tree-checker.c) for error branches that almost never happen, where
EIO is one of them.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
19 files changed:
fs/btrfs/backref.c
fs/btrfs/bio.c
fs/btrfs/defrag.c
fs/btrfs/dev-replace.c
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_map.c
fs/btrfs/file.c
fs/btrfs/free-space-tree.c
fs/btrfs/inode.c
fs/btrfs/qgroup.c
fs/btrfs/raid56.c
fs/btrfs/relocation.c
fs/btrfs/scrub.c
fs/btrfs/send.c
fs/btrfs/zlib.c
fs/btrfs/zoned.c
fs/btrfs/zstd.c