diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-29 23:40:28 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-06 03:03:45 -0400 |
commit | bade9711e0905eaa99e2ed98fc9642acaf9ba2b5 (patch) | |
tree | 22c1e5e37ae3f871d9a95251a656b87364c78204 /fs/bcachefs/fsck.h | |
parent | bf4baaa087e2be0279991f1dbf9acaa7a4c9148c (diff) |
bcachefs: Split out check_unreachable_inodes() pass
With inode backpointers, we can write a very simple
check_unreachable_inodes() pass that only looks for non-unlinked inodes
that are missing backpointers, and reattaches them.
This simplifies check_directory_structure() so that it's now only
checking for directory structure loops,
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fsck.h')
-rw-r--r-- | fs/bcachefs/fsck.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/fsck.h b/fs/bcachefs/fsck.h index a4ef94271784..1cca31011530 100644 --- a/fs/bcachefs/fsck.h +++ b/fs/bcachefs/fsck.h @@ -9,6 +9,7 @@ int bch2_check_dirents(struct bch_fs *); int bch2_check_xattrs(struct bch_fs *); int bch2_check_root(struct bch_fs *); int bch2_check_subvolume_structure(struct bch_fs *); +int bch2_check_unreachable_inodes(struct bch_fs *); int bch2_check_directory_structure(struct bch_fs *); int bch2_check_nlinks(struct bch_fs *); int bch2_fix_reflink_p(struct bch_fs *); |