diff options
| author | Andreas Gruenbacher <agruenba@redhat.com> | 2025-01-27 17:52:39 +0100 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-14 21:02:14 -0400 |
| commit | 11223d0e7b091b11e0e533850c1007e8fc797c68 (patch) | |
| tree | d4d8c11f79cb953fd355f09480d89a1be9e633b4 /fs/bcachefs/util.c | |
| parent | bcachefs: implement eytzinger0_find_gt directly (diff) | |
| download | linux-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
