mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 05:45:20 +00:00
bcachefs: __journal_keys_sort() refactoring
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
371650143d
commit
f412392f6e
@ -467,9 +467,7 @@ static void __journal_keys_sort(struct journal_keys *keys)
|
|||||||
src = dst = keys->d;
|
src = dst = keys->d;
|
||||||
while (src < keys->d + keys->nr) {
|
while (src < keys->d + keys->nr) {
|
||||||
while (src + 1 < keys->d + keys->nr &&
|
while (src + 1 < keys->d + keys->nr &&
|
||||||
src[0].btree_id == src[1].btree_id &&
|
!journal_key_cmp(src, src + 1))
|
||||||
src[0].level == src[1].level &&
|
|
||||||
bpos_eq(src[0].k->k.p, src[1].k->k.p))
|
|
||||||
src++;
|
src++;
|
||||||
|
|
||||||
*dst++ = *src++;
|
*dst++ = *src++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user