From b5fd066153c40a70a29caa1ea7987723ab687763 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 16 Jan 2024 17:00:02 -0500 Subject: Move c_src dirs back to toplevel We just wanted c sourcefiles out of the top level, not c source directories. Signed-off-by: Kent Overstreet --- libbcachefs/replicas_types.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 libbcachefs/replicas_types.h (limited to 'libbcachefs/replicas_types.h') diff --git a/libbcachefs/replicas_types.h b/libbcachefs/replicas_types.h new file mode 100644 index 00000000..ac90d142 --- /dev/null +++ b/libbcachefs/replicas_types.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _BCACHEFS_REPLICAS_TYPES_H +#define _BCACHEFS_REPLICAS_TYPES_H + +struct bch_replicas_cpu { + unsigned nr; + unsigned entry_size; + struct bch_replicas_entry_v1 *entries; +}; + +struct replicas_delta { + s64 delta; + struct bch_replicas_entry_v1 r; +} __packed; + +struct replicas_delta_list { + unsigned size; + unsigned used; + + struct {} memset_start; + u64 nr_inodes; + u64 persistent_reserved[BCH_REPLICAS_MAX]; + struct {} memset_end; + struct replicas_delta d[]; +}; + +#endif /* _BCACHEFS_REPLICAS_TYPES_H */ -- cgit v1.2.3