summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/inode.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-05 22:20:12 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-13 21:22:23 -0400
commit4c20278eb18ac22691aea6d9ecc8d98acffafd0d (patch)
treec2c8136ac56c6ddbbdca69fa8e23a8ab8588f690 /fs/bcachefs/inode.c
parent52946d828aac5bc8e20665a8434f87740fad03e3 (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.c')
-rw-r--r--fs/bcachefs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c
index ee298a47425f..418d731b47d2 100644
--- a/fs/bcachefs/inode.c
+++ b/fs/bcachefs/inode.c
@@ -324,7 +324,7 @@ int bch2_inode_unpack(struct bkey_s_c k,
return bch2_inode_unpack_slowpath(k, unpacked);
}
-static int bch2_inode_peek_nowarn(struct btree_trans *trans,
+int bch2_inode_peek_nowarn(struct btree_trans *trans,
struct btree_iter *iter,
struct bch_inode_unpacked *inode,
subvol_inum inum, unsigned flags)