bcachefs: check_inode_dirent_inode()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 7 Feb 2024 04:39:08 +0000 (23:39 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:23 +0000 (21:22 -0400)
commit0b17618fdc90fd4ed558aa9a4028879afd4f09e2
tree4522f82032e62030a3103cdce49223e80e50a937
parentf2b02d099cc781df340ed1f8b058dcb504b73a26
bcachefs: check_inode_dirent_inode()

check that if an inode has a backpointer, the dirent it points to points
back to it.

We do this in check_dirent_inode_dirent(), but only for inodes that have
dirents that point to them - we also have to do the check starting from
the inode to catch inodes that don't have dirents that point to them.

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