xref: /linux/fs/bcachefs/sb-counters.h (revision 06d07429858317ded2db7986113a9e0129cd599b)
1*3a58dfbcSKent Overstreet /* SPDX-License-Identifier: GPL-2.0 */
2*3a58dfbcSKent Overstreet #ifndef _BCACHEFS_SB_COUNTERS_H
3*3a58dfbcSKent Overstreet #define _BCACHEFS_SB_COUNTERS_H
4*3a58dfbcSKent Overstreet 
5*3a58dfbcSKent Overstreet #include "bcachefs.h"
6*3a58dfbcSKent Overstreet #include "super-io.h"
7*3a58dfbcSKent Overstreet 
8*3a58dfbcSKent Overstreet int bch2_sb_counters_to_cpu(struct bch_fs *);
9*3a58dfbcSKent Overstreet int bch2_sb_counters_from_cpu(struct bch_fs *);
10*3a58dfbcSKent Overstreet 
11*3a58dfbcSKent Overstreet void bch2_fs_counters_exit(struct bch_fs *);
12*3a58dfbcSKent Overstreet int bch2_fs_counters_init(struct bch_fs *);
13*3a58dfbcSKent Overstreet 
14*3a58dfbcSKent Overstreet extern const struct bch_sb_field_ops bch_sb_field_ops_counters;
15*3a58dfbcSKent Overstreet 
16*3a58dfbcSKent Overstreet #endif // _BCACHEFS_SB_COUNTERS_H
17