1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_QUOTA_TYPES_H
3 #define _BCACHEFS_QUOTA_TYPES_H
5 #include <linux/generic-radix-tree.h>
11 enum quota_acct_mode {
12 KEY_TYPE_QUOTA_PREALLOC,
14 KEY_TYPE_QUOTA_NOCHECK,
17 struct memquota_counter {
27 struct memquota_counter c[Q_COUNTERS];
30 typedef GENRADIX(struct bch_memquota) bch_memquota_table;
37 struct bch_memquota_type {
38 struct quota_limit limits[Q_COUNTERS];
39 bch_memquota_table table;
43 #endif /* _BCACHEFS_QUOTA_TYPES_H */