]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: Check for unlinked, non-empty dirs in check_inode()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 30 Sep 2024 03:38:37 +0000 (23:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 5 Oct 2024 00:25:32 +0000 (20:25 -0400)
commitc9306a91c3fdc9915f5408561ea432c70b03383b
tree6f44794e626f869f83b53ed4616d8092b3ef89e4
parentc7da5ee2e5cc30faca49e3ea9dbecf8f6ee4f1ea
bcachefs: Check for unlinked, non-empty dirs in check_inode()

We want to check for this early so it can be reattached if necessary in
check_unreachable_inodes(); better than letting it be deleted and having
the children reattached, losing their filenames.

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