|
@@ -2845,13 +2845,14 @@ static inline bool cfs_bandwidth_used(void)
|
|
|
return static_key_false(&__cfs_bandwidth_used);
|
|
|
}
|
|
|
|
|
|
-void account_cfs_bandwidth_used(int enabled, int was_enabled)
|
|
|
+void cfs_bandwidth_usage_inc(void)
|
|
|
{
|
|
|
- /* only need to count groups transitioning between enabled/!enabled */
|
|
|
- if (enabled && !was_enabled)
|
|
|
- static_key_slow_inc(&__cfs_bandwidth_used);
|
|
|
- else if (!enabled && was_enabled)
|
|
|
- static_key_slow_dec(&__cfs_bandwidth_used);
|
|
|
+ static_key_slow_inc(&__cfs_bandwidth_used);
|
|
|
+}
|
|
|
+
|
|
|
+void cfs_bandwidth_usage_dec(void)
|
|
|
+{
|
|
|
+ static_key_slow_dec(&__cfs_bandwidth_used);
|
|
|
}
|
|
|
#else /* HAVE_JUMP_LABEL */
|
|
|
static bool cfs_bandwidth_used(void)
|
|
@@ -2859,7 +2860,8 @@ static bool cfs_bandwidth_used(void)
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-void account_cfs_bandwidth_used(int enabled, int was_enabled) {}
|
|
|
+void cfs_bandwidth_usage_inc(void) {}
|
|
|
+void cfs_bandwidth_usage_dec(void) {}
|
|
|
#endif /* HAVE_JUMP_LABEL */
|
|
|
|
|
|
/*
|