summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/subvolume.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-09-24 11:33:07 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2024-10-05 02:25:32 +0200
commit1f73cb4d34e787b3671f1e9d527eb8cf72c05283 (patch)
treea5f98ac4c758828f37fdeb1555bfdeab036331da /fs/bcachefs/subvolume.h
parentbcachefs: Kill snapshot arg to fsck_write_inode() (diff)
downloadlinux-1f73cb4d34e787b3671f1e9d527eb8cf72c05283.tar.xz
linux-1f73cb4d34e787b3671f1e9d527eb8cf72c05283.zip
bcachefs: Add warn param to subvol_get_snapshot, peek_inode
These shouldn't always be fatal errors - logged op resume, in particular, and we want it as a parameter there. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r--fs/bcachefs/subvolume.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/subvolume.h b/fs/bcachefs/subvolume.h
index e62f876541fe..f897d106e142 100644
--- a/fs/bcachefs/subvolume.h
+++ b/fs/bcachefs/subvolume.h
@@ -26,6 +26,8 @@ int bch2_subvolume_trigger(struct btree_trans *, enum btree_id, unsigned,
int bch2_subvol_has_children(struct btree_trans *, u32);
int bch2_subvolume_get(struct btree_trans *, unsigned,
bool, int, struct bch_subvolume *);
+int __bch2_subvolume_get_snapshot(struct btree_trans *, u32,
+ u32 *, bool);
int bch2_subvolume_get_snapshot(struct btree_trans *, u32, u32 *);
int bch2_subvol_is_ro_trans(struct btree_trans *, u32);