bcachefs: move snapshot_t to subvolume_types.h
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 29 Mar 2023 15:01:12 +0000 (11:01 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:58 +0000 (17:09 -0400)
this doesn't need to be in bcachefs.h

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/subvolume_types.h

index db8c0e4fc5a3499e9f21a3e05a926f787408cff4..e5834729b52a39e9b3683ae3636db79975600b94 100644 (file)
@@ -629,18 +629,6 @@ struct btree_path_buf {
 
 #define REPLICAS_DELTA_LIST_MAX        (1U << 16)
 
-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;
-
 #define BCACHEFS_ROOT_SUBVOL_INUM                                      \
        ((subvol_inum) { BCACHEFS_ROOT_SUBVOL,  BCACHEFS_ROOT_INO })
 
index f7562b5d51dff4ba1c07e52857fe793bcc75a794..aa49c45a35ab2d2ee853b3119f349bb189919a39 100644 (file)
@@ -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 */