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

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
EUCLEAN (a corruption) 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/block-group.c
fs/btrfs/ctree.c
fs/btrfs/dev-replace.c
fs/btrfs/disk-io.c
fs/btrfs/export.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/lzo.c
fs/btrfs/qgroup.c
fs/btrfs/relocation.c
fs/btrfs/root-tree.c
fs/btrfs/scrub.c
fs/btrfs/send.c
fs/btrfs/super.c
fs/btrfs/verity.c
fs/btrfs/volumes.c
fs/btrfs/zoned.c