]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: mark all error and warning checks as unlikely in btrfs_validate_super()
authorFilipe Manana <fdmanana@suse.com>
Tue, 3 Feb 2026 16:11:42 +0000 (16:11 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:53 +0000 (18:55 +0200)
commit00b41fee23dab8879bdf656bcdaa6998b18ef3dc
tree31983336ab88eea1241be92e6ae1efaa464fb807
parentf754acce0f621425dadf7b50378e47adda336699
btrfs: mark all error and warning checks as unlikely in btrfs_validate_super()

When validating a super block, either when mounting or every time we write
a super block to disk, we do many checks for error and warnings and we
don't expect to hit any. So mark each one as unlikely to reflect that and
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