1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_SUBVOLUME_TYPES_H
3 #define _BCACHEFS_SUBVOLUME_TYPES_H
7 typedef DARRAY(u32) snapshot_id_list;
9 #define IS_ANCESTOR_BITMAP 128
16 u32 subvol; /* Nonzero only if a subvolume points to this node: */
19 unsigned long is_ancestor[BITS_TO_LONGS(IS_ANCESTOR_BITMAP)];
22 struct snapshot_table {
24 DECLARE_FLEX_ARRAY(struct snapshot_t, s);
26 struct snapshot_t s[0];
35 #endif /* _BCACHEFS_SUBVOLUME_TYPES_H */