btrfs: mark sanity checks when getting chunk map as unlikely
authorFilipe Manana <fdmanana@suse.com>
Tue, 21 Nov 2023 13:38:34 +0000 (13:38 +0000)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 19:27:01 +0000 (20:27 +0100)
commit5031660a1b6a7ca7f9a1c55ebf0c157255826915
tree75bd58dfe22c383743d564c88d192007937f0657
parent46524fab690ea5ee7b7a8c6b788d06765cdf8db1
btrfs: mark sanity checks when getting chunk map as unlikely

When getting a chunk map, at btrfs_get_chunk_map(), we do some sanity
checks to verify that we found an extent map and that it includes the
requested logical address. These are never expected to fail, so mark
them as unlikely to make it more clear as well as to allow a compiler
to generate more efficient code.

Reviewed-by: Josef Bacik <josef@toxicpanda.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/volumes.c