1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _BCACHEFS_SB_COUNTERS_H 3 #define _BCACHEFS_SB_COUNTERS_H 4 5 #include "bcachefs.h" 6 #include "super-io.h" 7 8 int bch2_sb_counters_to_cpu(struct bch_fs *); 9 int bch2_sb_counters_from_cpu(struct bch_fs *); 10 11 void bch2_fs_counters_exit(struct bch_fs *); 12 int bch2_fs_counters_init(struct bch_fs *); 13 14 extern const char * const bch2_counter_names[]; 15 extern const struct bch_sb_field_ops bch_sb_field_ops_counters; 16 17 long bch2_ioctl_query_counters(struct bch_fs *, 18 struct bch_ioctl_query_counters __user *); 19 20 #endif // _BCACHEFS_SB_COUNTERS_H 21