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:
Zach Brown
2017-06-07 08:52:11 -07:00
parent 0280971fab
commit 85cbe7dc97

View File

@@ -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);