bcachefs: Fix check_i_sectors()
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 20 Jul 2022 21:35:57 +0000 (17:35 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:37 +0000 (17:09 -0400)
commit7903e3d2d7e5266dde40c9db746fafb078f84f4f
tree74cd385eaff949a9fc9c1c6fac88422ae758d5e0
parentd7228ecc483e1e104179a24a7e1e4568ae9235cb
bcachefs: Fix check_i_sectors()

bch2_count_inode_sectors() uses for_each_btree_key() internally, which
handles lock restarts - the lockrestart_do() in check_i_sectors() is
redundant, and buggy here since the count that
bch2_count_inode_sectors() returns was interpreted as an error by
lockrestart_do().

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/fsck.c