From: Kent Overstreet Date: Tue, 13 Aug 2024 08:53:12 +0000 (-0400) Subject: bcachefs: bch2_accounting_invalid() fixup X-Git-Tag: v6.12~281^2~190 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9e615762bf2eb7459fb0f270525f8b186bce6b7;p=platform%2Fkernel%2Flinux-amlogic.git bcachefs: bch2_accounting_invalid() fixup Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/disk_accounting.c b/fs/bcachefs/disk_accounting.c index 046ac92b6639..212f53927111 100644 --- a/fs/bcachefs/disk_accounting.c +++ b/fs/bcachefs/disk_accounting.c @@ -154,7 +154,7 @@ int bch2_accounting_invalid(struct bch_fs *c, struct bkey_s_c k, "accounting key replicas entry with bad nr_required"); for (unsigned i = 0; i + 1 < acc_k.replicas.nr_devs; i++) - bkey_fsck_err_on(acc_k.replicas.devs[i] > acc_k.replicas.devs[i + 1], + bkey_fsck_err_on(acc_k.replicas.devs[i] >= acc_k.replicas.devs[i + 1], c, err, accounting_key_replicas_devs_unsorted, "accounting key replicas entry with unsorted devs");