Skip to content

bcachefs: eytzinger code

Andreas Gruenbacher linux-bcachefs 2 versions – Applied

Status from this message: Thanks! Applied to my master & for-next branches.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest21 patches 1 replyApplied
  2. v121 patches 15 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/21bcachefs: bch2_blacklist_entries_gc cleanupfs/bcachefs/journal_seq_blacklist.c+3 -40 replies
2/21bcachefs: EYTZINGER_DEBUG fixfs/bcachefs/eytzinger.h+1 -00 replies
3/21bcachefs: eytzinger self tests: loop cleanupsfs/bcachefs/util.c+11 -110 replies
4/21bcachefs: eytzinger self tests: missing newline terminationfs/bcachefs/util.c+7 -70 replies
5/21bcachefs: eytzinger self tests: fix cmp_u16 typofs/bcachefs/util.c+1 -10 replies
6/21bcachefs: eytzinger[01]_test improvementfs/bcachefs/util.c+2 -00 replies
7/21bcachefs: eytzinger0_find_test improvementfs/bcachefs/util.c+6 -30 replies
8/21bcachefs: add eytzinger0_for_each_prevfs/bcachefs/eytzinger.h fs/bcachefs/util.c+14 -00 replies
9/21bcachefs: improve eytzinger0_find_le self testfs/bcachefs/util.c+30 -110 replies
10/21bcachefs: convert eytzinger0_find_le to be 1-basedfs/bcachefs/eytzinger.h+8 -80 replies
11/21bcachefs: simplify eytzinger0_find_lefs/bcachefs/eytzinger.h+6 -200 replies
12/21bcachefs: add eytzinger0_find_gt self testfs/bcachefs/util.c+38 -00 replies
13/21bcachefs: implement eytzinger0_find_gt directlyfs/bcachefs/eytzinger.h+7 -100 replies
14/21bcachefs: implement eytzinger0_find_ge directlyfs/bcachefs/eytzinger.h+7 -50 replies
15/21bcachefs: add eytzinger0_find_ge self testfs/bcachefs/util.c+38 -00 replies
16/21bcachefs: Add eytzinger0_find self testfs/bcachefs/util.c+29 -00 replies
17/21bcachefs: convert eytzinger0_find to be 1-basedfs/bcachefs/eytzinger.h+7 -70 replies
18/21bcachefs: convert eytzinger sort to be 1-based (1)fs/bcachefs/eytzinger.c+29 -190 replies
19/21bcachefs: convert eytzinger sort to be 1-based (2)fs/bcachefs/eytzinger.c+21 -210 replies
20/21bcachefs: eytzinger1_{next,prev} cleanupfs/bcachefs/eytzinger.h fs/bcachefs/util.c+4 -260 replies
21/21bcachefs: Run the eytzinger tests on modprobefs/bcachefs/eytzinger.c fs/bcachefs/eytzinger.h fs/bcachefs/super.c +2 more+17 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/21] bcachefs: eytzinger code

Kent,

here is another update. Changes:

* Added a self test for eytzinger0_find().

* The patches are now in fully bisectable order, with slightly improved patch descriptions.

* The patch that runs the self tests on modprobe has been moved to the end of the patch queue. This patch is useful for testing, but it SHOULD NOT BE MERGED.

A git tree of the patches can again be found here:

https://git.kernel.org/pub/scm/linux/kernel/git/agruen/linux.git/log/?h=bcachefs

Base: v6.13
Head: d79258df8791 ("bcachefs: Run the eytzinger tests on modprobe")

The previous CI test results at:

https://evilpiepirate.org/~testdashboard/ci?user=kmo&branch=eytzinger

against the previous version of this patch queue and with head:

94865378e1a3 ("bcachefs: eytzinger1_{next,prev} cleanup")

show a large number of passed as well as failed tests even for upstream v6.13, so I don't know what to conclude from that.

In any case, there is one failure reporting that eytzinger0_find_ge() didn't find the first matching element in an array with duplicate elements:

https://evilpiepirate.org/~testdashboard/ci?user=kmo&branch=eytzinger&commit=c31c7c659278bc2581ef0c7c4119fe14c7476ea3

This is imtentional and expected because at this point in the patch queue, eytzinger0_find_ge() hasn't been fixed to always return the first matching element. The current version of the patch queue adds the fix before adding the test, so this failure will be gone.

That being said, as per request, the updated patch queue only enables the self tests in the last patch, so we wouldn't see failures of that kind anymore, anyway.

Thanks,
Andreas

Andreas Gruenbacher (21):
bcachefs: bch2_blacklist_entries_gc cleanup
bcachefs: EYTZINGER_DEBUG fix
bcachefs: eytzinger self tests: loop cleanups
bcachefs: eytzinger self tests: missing newline termination
bcachefs: eytzinger self tests: fix cmp_u16 typo
bcachefs: eytzinger[01]_test improvement
bcachefs: eytzinger0_find_test improvement
bcachefs: add eytzinger0_for_each_prev
bcachefs: improve eytzinger0_find_le self test
bcachefs: convert eytzinger0_find_le to be 1-based
bcachefs: simplify eytzinger0_find_le
bcachefs: add eytzinger0_find_gt self test
bcachefs: implement eytzinger0_find_gt directly
bcachefs: implement eytzinger0_find_ge directly
bcachefs: add eytzinger0_find_ge self test
bcachefs: Add eytzinger0_find self test
bcachefs: convert eytzinger0_find to be 1-based
bcachefs: convert eytzinger sort to be 1-based (1)
bcachefs: convert eytzinger sort to be 1-based (2)
bcachefs: eytzinger1_{next,prev} cleanup
bcachefs: Run the eytzinger tests on modprobe

 fs/bcachefs/eytzinger.c             |  88 ++++++------
 fs/bcachefs/eytzinger.h             |  99 ++++++-------
 fs/bcachefs/journal_seq_blacklist.c |   7 +-
 fs/bcachefs/super.c                 |   5 +
 fs/bcachefs/util.c                  | 212 ++++++++++++++++++++++------
 fs/bcachefs/util.h                  |   4 +
 6 files changed, 269 insertions(+), 146 deletions(-)
Signature · 1 line
2.48.1