Commit 2a7268ab authored by Yong Zhang's avatar Yong Zhang Committed by Linus Torvalds

ratelimit: annotate ___ratelimit()

To prevent from wrongly using the return value.

[akpm@linux-foundation.org: fix spello]
Signed-off-by: default avatarYong Zhang <yong.zhang@windriver.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ee5d2acd
...@@ -16,9 +16,14 @@ ...@@ -16,9 +16,14 @@
/* /*
* __ratelimit - rate limiting * __ratelimit - rate limiting
* @rs: ratelimit_state data * @rs: ratelimit_state data
* @func: name of calling function
* *
* This enforces a rate limit: not more than @rs->ratelimit_burst callbacks * This enforces a rate limit: not more than @rs->burst callbacks
* in every @rs->ratelimit_jiffies * in every @rs->interval
*
* RETURNS:
* 0 means callbacks will be suppressed.
* 1 means go ahead and do it.
*/ */
int ___ratelimit(struct ratelimit_state *rs, const char *func) int ___ratelimit(struct ratelimit_state *rs, const char *func)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment