aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/percpu_counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/percpu_counter.h')
-rw-r--r--include/linux/percpu_counter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h
index b84fc8667de8..438a170187ec 100644
--- a/include/linux/percpu_counter.h
+++ b/include/linux/percpu_counter.h
@@ -105,4 +105,9 @@ static inline void percpu_counter_dec(struct percpu_counter *fbc)
105 percpu_counter_add(fbc, -1); 105 percpu_counter_add(fbc, -1);
106} 106}
107 107
108static inline void percpu_counter_sub(struct percpu_counter *fbc, s64 amount)
109{
110 percpu_counter_add(fbc, -amount);
111}
112
108#endif /* _LINUX_PERCPU_COUNTER_H */ 113#endif /* _LINUX_PERCPU_COUNTER_H */