bcachefs: Only check inode i_nlink during full fsck
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 15 Jul 2018 01:06:51 +0000 (21:06 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:07 +0000 (17:08 -0400)
commit88c07f739786d00c7526d598956955c8310d72d2
tree9f34060d43a1588532ff962cdf4c0d68d1a6110c
parent1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a
bcachefs: Only check inode i_nlink during full fsck

Now that all filesystem operatinos that manipulate the filesystem
heirachy and i_nlink are fully atomic, we can add a feature bit to
indicate i_nlink doesn't need to be checked.

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