summaryrefslogtreecommitdiff
path: root/fs/bcachefs/subvolume_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/subvolume_types.h')
-rw-r--r--fs/bcachefs/subvolume_types.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/fs/bcachefs/subvolume_types.h b/fs/bcachefs/subvolume_types.h
index 9410b9587591..aa49c45a35ab 100644
--- a/fs/bcachefs/subvolume_types.h
+++ b/fs/bcachefs/subvolume_types.h
@@ -2,10 +2,20 @@
#ifndef _BCACHEFS_SUBVOLUME_TYPES_H
#define _BCACHEFS_SUBVOLUME_TYPES_H
-struct snapshot_id_list {
- u32 nr;
- u32 size;
- u32 *d;
+#include "darray.h"
+
+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 */