summaryrefslogtreecommitdiff
path: root/fs/bcachefs/subvolume_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-29 18:01:12 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:58 +0300
commit4f77dcde2841e43e4c5fe9f178a64ec40be72e17 (patch)
treec354b0642172c185db9fd2f839fff0b56e27fdf2 /fs/bcachefs/subvolume_types.h
parent1546cf972709d9b10c39fdb3bff9da3f22a57226 (diff)
downloadlinux-4f77dcde2841e43e4c5fe9f178a64ec40be72e17.tar.xz
bcachefs: move snapshot_t to subvolume_types.h
this doesn't need to be in bcachefs.h Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/subvolume_types.h')
-rw-r--r--fs/bcachefs/subvolume_types.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/bcachefs/subvolume_types.h b/fs/bcachefs/subvolume_types.h
index f7562b5d51df..aa49c45a35ab 100644
--- a/fs/bcachefs/subvolume_types.h
+++ b/fs/bcachefs/subvolume_types.h
@@ -6,4 +6,16 @@
typedef DARRAY(u32) snapshot_id_list;
+struct snapshot_t {
+ u32 parent;
+ u32 children[2];
+ u32 subvol; /* Nonzero only if a subvolume points to this node: */
+ u32 equiv;
+};
+
+typedef struct {
+ u32 subvol;
+ u64 inum;
+} subvol_inum;
+
#endif /* _BCACHEFS_SUBVOLUME_TYPES_H */