]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ratelimit: add ratelimit_state_init()
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Mon, 24 May 2010 21:33:11 +0000 (14:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:07:03 +0000 (08:07 -0700)
commitf40c396a9ab04eae526990e2b2cef875b424ed4e
tree92b87fb6feb9470f9aa3cacc9344f7907ab2489c
parentd8521fcc5e0ad3e79bbc4231bb20a6cdc2b50164
ratelimit: add ratelimit_state_init()

For now, all users of ratelimit_state allocates it statically, so
DEFINE_RATELIMIT_STATE() is enough.  But, I want to use ratelimit_state
for fs, i.e.  per super_block to suppress too many error reports.

So, this adds ratelimit_state_init() to initialize ratelimite_state
which is dynamically allocated, instead of opencoding.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/ratelimit.h