1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _BCACHEFS_DISK_ACCOUNTING_TYPES_H
#define _BCACHEFS_DISK_ACCOUNTING_TYPES_H

#include "darray.h"

struct accounting_mem_entry {
	struct bpos				pos;
	struct bversion				bversion;
	unsigned				nr_counters;
	u64 __percpu				*v[2];
};

struct bch_accounting_mem {
	DARRAY(struct accounting_mem_entry)	k;
	bool					gc_running;
};

#endif /* _BCACHEFS_DISK_ACCOUNTING_TYPES_H */
想見你 只想見你 未來過去 我只想見你