summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bset.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-10-23 14:56:20 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:31 -0400
commit58404bb2362d8198c8b6618669ff949f84743ff6 (patch)
tree8925d64235fa5ddc9d750abced791f81f3c45240 /fs/bcachefs/bset.h
parent1bdb67e8cb42c156954dfe2bfb1fa6ca5eee3633 (diff)
downloadlinux-58404bb2362d8198c8b6618669ff949f84743ff6.tar.gz
linux-58404bb2362d8198c8b6618669ff949f84743ff6.tar.bz2
linux-58404bb2362d8198c8b6618669ff949f84743ff6.zip
bcachefs: Fall back to slowpath on exact comparison
This is basically equivalent to the original strategy of falling back to checking against the original key when the original key and previous key didn't differ in the required bits - except, now we only fall back when the search key doesn't differ in the required bits, which ends up being a bit faster. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bset.h')
-rw-r--r--fs/bcachefs/bset.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/bset.h b/fs/bcachefs/bset.h
index 0e4f27dbb8ef..3f5b7378a0a9 100644
--- a/fs/bcachefs/bset.h
+++ b/fs/bcachefs/bset.h
@@ -597,8 +597,7 @@ struct bset_stats {
} sets[BSET_TREE_NR_TYPES];
size_t floats;
- size_t failed_unpacked;
- size_t failed_overflow;
+ size_t failed;
};
void bch2_btree_keys_stats(struct btree *, struct bset_stats *);