diff options
Diffstat (limited to 'include/linux/percpu_counter.h')
-rw-r--r-- | include/linux/percpu_counter.h | 5 |
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) percpu_counter_add(fbc, -1); } +static inline void percpu_counter_sub(struct percpu_counter *fbc, s64 amount) +{ + percpu_counter_add(fbc, -amount); +} + #endif /* _LINUX_PERCPU_COUNTER_H */ |