bcachefs: Small fsck fix
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 14 Feb 2022 01:42:12 +0000 (20:42 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:23 +0000 (17:09 -0400)
commit9e34316156a2c148b0675087beeaca26f7eb79f9
tree8399f66785e99c8ff210e436b33eacd7bb8aae2c
parentaa8982c3f2cbfca89fb73daad9d6e65f7be022c2
bcachefs: Small fsck fix

The check_dirents pass handles transaction restarts at the toplevel -
check_subdir_count() was incorrectly handling transaction restarts
without returning -EINTR, meaning that the iterator pointing to the
dirent being checked was left invalid.

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