diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-07-29 00:46:21 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-29 01:30:20 +0200 |
commit | 4d9c377c81d37740b25cacf025f95c084eafabbb (patch) | |
tree | a7ff1a6ca9865c47c86df4df64bf2cfc8b38daaf /lib/ratelimit.c | |
parent | tmpfs: fix kernel BUG in shmem_delete_inode (diff) | |
download | linux-4d9c377c81d37740b25cacf025f95c084eafabbb.tar.xz linux-4d9c377c81d37740b25cacf025f95c084eafabbb.zip |
__ratelimit() cpu flags can't be static
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/ratelimit.c')
-rw-r--r-- | lib/ratelimit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ratelimit.c b/lib/ratelimit.c index 35136671b215..26187edcc7ea 100644 --- a/lib/ratelimit.c +++ b/lib/ratelimit.c @@ -15,7 +15,6 @@ #include <linux/module.h> static DEFINE_SPINLOCK(ratelimit_lock); -static unsigned long flags; /* * __ratelimit - rate limiting @@ -26,6 +25,8 @@ static unsigned long flags; */ int __ratelimit(struct ratelimit_state *rs) { + unsigned long flags; + if (!rs->interval) return 1; |