summaryrefslogtreecommitdiff
path: root/fs/bcachefs/sb-counters.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-01-20 23:46:35 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-21 13:27:10 -0500
commit3a58dfbc46c277b090f1b72c949e15da7e1290bf (patch)
tree7800932ee0f5eaca4d4508d3b018ce765da203bc /fs/bcachefs/sb-counters.h
parent12207f49ef41d5599fb313d103f2c7b485848c9d (diff)
bcachefs: counters.c -> sb-counters.c
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-counters.h')
-rw-r--r--fs/bcachefs/sb-counters.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/bcachefs/sb-counters.h b/fs/bcachefs/sb-counters.h
new file mode 100644
index 000000000000..81f8aec9fcb1
--- /dev/null
+++ b/fs/bcachefs/sb-counters.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _BCACHEFS_SB_COUNTERS_H
+#define _BCACHEFS_SB_COUNTERS_H
+
+#include "bcachefs.h"
+#include "super-io.h"
+
+int bch2_sb_counters_to_cpu(struct bch_fs *);
+int bch2_sb_counters_from_cpu(struct bch_fs *);
+
+void bch2_fs_counters_exit(struct bch_fs *);
+int bch2_fs_counters_init(struct bch_fs *);
+
+extern const struct bch_sb_field_ops bch_sb_field_ops_counters;
+
+#endif // _BCACHEFS_SB_COUNTERS_H