mirror of
https://github.com/versity/scoutfs.git
synced 2026-06-03 10:16:21 +00:00
scoutfs: add a counter add macro to match inc
Just a quick wrapper around the related percpu_counter call. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -58,6 +58,9 @@ struct scoutfs_counters {
|
||||
#define scoutfs_inc_counter(sb, which) \
|
||||
percpu_counter_inc(&SCOUTFS_SB(sb)->counters->which)
|
||||
|
||||
#define scoutfs_add_counter(sb, which, cnt) \
|
||||
percpu_counter_add(&SCOUTFS_SB(sb)->counters->which, cnt)
|
||||
|
||||
void __init scoutfs_init_counters(void);
|
||||
int scoutfs_setup_counters(struct super_block *sb);
|
||||
void scoutfs_destroy_counters(struct super_block *sb);
|
||||
|
||||
Reference in New Issue
Block a user