diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-13 04:53:12 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-13 22:56:50 -0400 |
commit | d9e615762bf2eb7459fb0f270525f8b186bce6b7 (patch) | |
tree | 21f3ced824d1e429022624aebae2f028c61ecb16 /fs | |
parent | bd864bc2d90790e00b02b17c75fb951cb4b0bb8b (diff) | |
download | linux-stable-d9e615762bf2eb7459fb0f270525f8b186bce6b7.tar.gz linux-stable-d9e615762bf2eb7459fb0f270525f8b186bce6b7.tar.bz2 linux-stable-d9e615762bf2eb7459fb0f270525f8b186bce6b7.zip |
bcachefs: bch2_accounting_invalid() fixup
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/disk_accounting.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |