]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Run bch2_check_dirent_target() at lookup time
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 20 Mar 2025 15:41:07 +0000 (11:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 24 Mar 2025 13:50:36 +0000 (09:50 -0400)
commit04e90891be26a240e41d51d1770de56e810fda5e
tree876896d7c837fb419c03f3b59bee4e3e173ee13a
parent9b0d00a3693bbab49dcec00dd981c8661d6011bf
bcachefs: Run bch2_check_dirent_target() at lookup time

More on the "full online self healing" project:

We now run most of the dirent <-> inode consistency checks, with repair
code, at runtime - the exact same check and repair code that fsck runs.

This will allow us to repair the "dirent points to inode that does not
point back" inconsistencies that have been popping up at runtime.

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