]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
bcachefs: bch2_accounting_invalid() fixup
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 13 Aug 2024 08:53:12 +0000 (04:53 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 14 Aug 2024 02:56:50 +0000 (22:56 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/disk_accounting.c

index 046ac92b66395f02015e9f4e80bfbd808d66868b..212f53927111119132ea4d61ff3b1ab431f9fc91 100644 (file)
@@ -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");