summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-09-16 18:33:00 +0300
committerDavid Sterba <dsterba@suse.com>2025-09-23 09:49:23 +0300
commit5afe85b771eefe91891cca332cb916f8da6d48e1 (patch)
tree11a56a45717c369cfe903c750710611570087969 /fs/btrfs/disk-io.c
parentb0e30e373e3752d4a59cb0f2b6a4aa8b3b54f041 (diff)
downloadlinux-5afe85b771eefe91891cca332cb916f8da6d48e1.tar.xz
btrfs: mark leaf space and overflow checks as unlikely on insert and extension
We have several sanity checks when inserting or extending items in a btree that verify we didn't overflow the leaf or access a slot beyond the last one. These are cases that are never expected to be hit so mark them as unlikely, allowing 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>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions