|
|
@@ -41,7 +41,12 @@ void percpu_counter_destroy(struct percpu_counter *fbc);
|
|
|
void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
|
|
|
void __percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch);
|
|
|
s64 __percpu_counter_sum(struct percpu_counter *fbc);
|
|
|
-int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs);
|
|
|
+int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
|
|
|
+
|
|
|
+static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs)
|
|
|
+{
|
|
|
+ return __percpu_counter_compare(fbc, rhs, percpu_counter_batch);
|
|
|
+}
|
|
|
|
|
|
static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount)
|
|
|
{
|
|
|
@@ -116,6 +121,12 @@ static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static inline int
|
|
|
+__percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch)
|
|
|
+{
|
|
|
+ return percpu_counter_compare(fbc, rhs);
|
|
|
+}
|
|
|
+
|
|
|
static inline void
|
|
|
percpu_counter_add(struct percpu_counter *fbc, s64 amount)
|
|
|
{
|