aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/inode.h
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@linux.dev> 2024-02-05 22:20:12 -0500
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2024-03-13 21:22:23 -0400
commit4c20278eb18ac22691aea6d9ecc8d98acffafd0d (patch)
treec2c8136ac56c6ddbbdca69fa8e23a8ab8588f690 /fs/bcachefs/inode.h
parentbcachefs: Kill more -EIO error codes (diff)
downloadlinux-4c20278eb18ac22691aea6d9ecc8d98acffafd0d.tar.gz
linux-4c20278eb18ac22691aea6d9ecc8d98acffafd0d.tar.bz2
linux-4c20278eb18ac22691aea6d9ecc8d98acffafd0d.zip
bcachefs: Check subvol <-> inode pointers in check_subvol()
Subvolumes and subvolume root inodes point to each other: this verifies the subvolume -> inode -> subvolme path. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/inode.h')
-rw-r--r--fs/bcachefs/inode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/inode.h b/fs/bcachefs/inode.h
index b8da7ff8069d..9a9353c001c2 100644
--- a/fs/bcachefs/inode.h
+++ b/fs/bcachefs/inode.h
@@ -95,6 +95,8 @@ struct bkey_i *bch2_inode_to_v3(struct btree_trans *, struct bkey_i *);
void bch2_inode_unpacked_to_text(struct printbuf *, struct bch_inode_unpacked *);
+int bch2_inode_peek_nowarn(struct btree_trans *, struct btree_iter *,
+ struct bch_inode_unpacked *, subvol_inum, unsigned);
int bch2_inode_peek(struct btree_trans *, struct btree_iter *,
struct bch_inode_unpacked *, subvol_inum, unsigned);