bcachefs: Make sure hash info gets initialized in fsck
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 25 Apr 2023 18:32:39 +0000 (14:32 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:00 +0000 (17:10 -0400)
commitc8d5b71411473187db4fbc6ca419496b716778b8
tree2ceabbcf47bdb5a1bafe00dc0d97839e86707c78
parent1af5227c1d6b3513106f82808fe163bf0bd70df8
bcachefs: Make sure hash info gets initialized in fsck

We had some bugs with setting/using first_this_inode in the inode
walker in the dirents/xattr code.

This patch changes to not clear first_this_inode until after
initializing the new hash info.

Also, we fix an error message to not print on transaction restart, and
add a comment to related fsck error code.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/error.c
fs/bcachefs/fsck.c