summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/util.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2025-01-27 17:52:39 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-14 21:02:14 -0400
commit11223d0e7b091b11e0e533850c1007e8fc797c68 (patch)
treed4d8c11f79cb953fd355f09480d89a1be9e633b4 /fs/bcachefs/util.c
parentbcachefs: implement eytzinger0_find_gt directly (diff)
downloadlinux-11223d0e7b091b11e0e533850c1007e8fc797c68.tar.gz
linux-11223d0e7b091b11e0e533850c1007e8fc797c68.zip
bcachefs: implement eytzinger0_find_ge directly
Implement eytzinger0_find_ge() directly instead of implementing it in terms of eytzinger0_find_le() and adjusting the result. This turns eytzinger0_find_ge() into a minimum search, so when there are duplicate elements, the result of eytzinger0_find_ge() will now always point at the first matching element. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.c')
0 files changed, 0 insertions, 0 deletions