Skip to content

Commit d9e6157

Browse files
author
Kent Overstreet
committed
bcachefs: bch2_accounting_invalid() fixup
Signed-off-by: Kent Overstreet <[email protected]>
1 parent bd864bc commit d9e6157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/disk_accounting.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int bch2_accounting_invalid(struct bch_fs *c, struct bkey_s_c k,
154154
"accounting key replicas entry with bad nr_required");
155155

156156
for (unsigned i = 0; i + 1 < acc_k.replicas.nr_devs; i++)
157-
bkey_fsck_err_on(acc_k.replicas.devs[i] > acc_k.replicas.devs[i + 1],
157+
bkey_fsck_err_on(acc_k.replicas.devs[i] >= acc_k.replicas.devs[i + 1],
158158
c, err, accounting_key_replicas_devs_unsorted,
159159
"accounting key replicas entry with unsorted devs");
160160

0 commit comments

Comments
 (0)