summaryrefslogtreecommitdiff
path: root/libbcachefs/quota.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/quota.h')
-rw-r--r--libbcachefs/quota.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libbcachefs/quota.h b/libbcachefs/quota.h
index 509b7f0e..0b24f22c 100644
--- a/libbcachefs/quota.h
+++ b/libbcachefs/quota.h
@@ -1,9 +1,18 @@
#ifndef _BCACHEFS_QUOTA_H
#define _BCACHEFS_QUOTA_H
+#include "inode.h"
#include "quota_types.h"
-extern const struct bkey_ops bch2_bkey_quota_ops;
+extern const struct bch_sb_field_ops bch_sb_field_ops_quota;
+
+const char *bch2_quota_invalid(const struct bch_fs *, struct bkey_s_c);
+void bch2_quota_to_text(struct bch_fs *, char *, size_t, struct bkey_s_c);
+
+#define bch2_bkey_quota_ops (struct bkey_ops) { \
+ .key_invalid = bch2_quota_invalid, \
+ .val_to_text = bch2_quota_to_text, \
+}
enum quota_acct_mode {
BCH_QUOTA_PREALLOC,