]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: fsck: check_directory_structure runs in reverse order
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 20:13:02 +0000 (16:13 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 23:05:02 +0000 (19:05 -0400)
commit3e5ceaa5bfd71ae94d736426f8a27391023182ff
tree1a464718cff42474f30add8d3c1418f3b5f050fe
parent9fb09ace59b2beab312ec225630ce87ddbec6d79
bcachefs: fsck: check_directory_structure runs in reverse order

When we find a directory connectivity problem, we should do the repair
in the oldest snapshot that has the issue - so that we don't end up
duplicating work or making a real mess of things.

Oldest snapshot IDs have the highest integer value, so - just walk
inodes in reverse order.

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