From: Kent Overstreet Date: Sat, 24 Apr 2021 04:59:29 +0000 (-0400) Subject: bcachefs: Fix bch2_verify_keylist_sorted X-Git-Tag: io_uring-6.7-2023-11-10~119^2~1612 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8058b532ac3bb5a0cec80056fde8a4669de2b551;p=linux-block.git bcachefs: Fix bch2_verify_keylist_sorted Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/keylist.c b/fs/bcachefs/keylist.c index 864dfaa67b7a..cda77835b9ea 100644 --- a/fs/bcachefs/keylist.c +++ b/fs/bcachefs/keylist.c @@ -62,6 +62,6 @@ void bch2_verify_keylist_sorted(struct keylist *l) for_each_keylist_key(l, k) BUG_ON(bkey_next(k) != l->top && - bkey_cmp(k->k.p, bkey_next(k)->k.p) >= 0); + bpos_cmp(k->k.p, bkey_next(k)->k.p) >= 0); } #endif