aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/inode.h
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@gmail.com> 2021-04-07 03:11:07 -0400
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-10-22 17:09:00 -0400
commitd3ff7fec9c604e2cac3d0126f6764c5c0392a271 (patch)
tree652277adf8c1b6c6a1a9984d4ec9e9a3ca1d38ef /fs/bcachefs/inode.h
parentbcachefs: Fix fsck to not use bch2_link_trans() (diff)
downloadlinux-d3ff7fec9c604e2cac3d0126f6764c5c0392a271.tar.gz
linux-d3ff7fec9c604e2cac3d0126f6764c5c0392a271.tar.bz2
linux-d3ff7fec9c604e2cac3d0126f6764c5c0392a271.zip
bcachefs: Improved check_directory_structure()
Now that we have inode backpointers, we can simplify checking directory structure: instead of doing a DFS from the filesystem root and then checking if we found everything, we can iterate over every inode and see if we can go up until we get to the root. This patch also has a number of fixes and simplifications for the inode backpointer checks. Also, it turns out we don't actually need the BCH_INODE_BACKPTR_UNTRUSTED flag. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/inode.h')
-rw-r--r--fs/bcachefs/inode.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/bcachefs/inode.h b/fs/bcachefs/inode.h
index 23c322d9a85b..558d5464095d 100644
--- a/fs/bcachefs/inode.h
+++ b/fs/bcachefs/inode.h
@@ -74,10 +74,6 @@ struct btree_iter *bch2_inode_create(struct btree_trans *,
int bch2_inode_rm(struct bch_fs *, u64, bool);
-int __bch2_inode_find_by_inum_trans(struct btree_trans *, u64,
- struct bch_inode_unpacked *, unsigned);
-int bch2_inode_find_by_inum_trans(struct btree_trans *, u64,
- struct bch_inode_unpacked *);
int bch2_inode_find_by_inum(struct bch_fs *, u64, struct bch_inode_unpacked *);
static inline struct bch_io_opts bch2_inode_opts_get(struct bch_inode_unpacked *inode)