Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189573
b: refs/heads/master
c: 2a7268a
h: refs/heads/master
i:
  189571: 74aff87
v: v3
  • Loading branch information
Yong Zhang authored and Linus Torvalds committed Apr 7, 2010
1 parent d2b62a8 commit efc68ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee5d2acd5ca1534f40e06d4f0d41a940b17beb54
refs/heads/master: 2a7268abc48c8009b284bd88605d14fcb65772ec
9 changes: 7 additions & 2 deletions trunk/lib/ratelimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@
/*
* __ratelimit - rate limiting
* @rs: ratelimit_state data
* @func: name of calling function
*
* This enforces a rate limit: not more than @rs->ratelimit_burst callbacks
* in every @rs->ratelimit_jiffies
* This enforces a rate limit: not more than @rs->burst callbacks
* 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)
{
Expand Down

0 comments on commit efc68ac

Please sign in to comment.