aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-11-21 13:38:34 +0000
committerDavid Sterba <dsterba@suse.com>2023-12-15 20:27:01 +0100
commit5031660a1b6a7ca7f9a1c55ebf0c157255826915 (patch)
tree75bd58dfe22c383743d564c88d192007937f0657 /fs/btrfs/dev-replace.c
parent46524fab690ea5ee7b7a8c6b788d06765cdf8db1 (diff)
downloadlinux-5031660a1b6a7ca7f9a1c55ebf0c157255826915.tar.gz
linux-5031660a1b6a7ca7f9a1c55ebf0c157255826915.tar.bz2
linux-5031660a1b6a7ca7f9a1c55ebf0c157255826915.zip
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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions