bcachefs: Fix lookup_first_inode() when inode_generations are present
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 26 May 2024 17:24:31 +0000 (13:24 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 May 2024 15:29:26 +0000 (11:29 -0400)
commit9e1a66e66870ebeebea9f674550118df3c12eaf6
treed79ec30657840e1db00ebb8a2058859ee4105ba5
parent1292bc2ebf63e705ae18bbaaf9cea21b68d37ee6
bcachefs: Fix lookup_first_inode() when inode_generations are present

This function is used for finding the hash seed (which is the same in
all versions of an inode in different snapshots): ff an inode has been
deleted in a child snapshot we need to iterate until we find a live
version.

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