xfs: Add ratelimited printk for different alert levels
authorRich Johnston <rjohnston@sgi.com>
Wed, 27 Mar 2013 14:26:49 +0000 (09:26 -0500)
committerBen Myers <bpm@sgi.com>
Wed, 3 Apr 2013 18:20:39 +0000 (13:20 -0500)
commit3d6e036193bfa67a8a1cc1908fe910c7a014d183
treee48b9f00a87d1188fd8537d51efd70854f5c8683
parentff9a28f6c25d18a635abcab1f49db68108203dfb
xfs: Add ratelimited printk for different alert levels

Ratelimited printk will be useful in printing xfs messages which are otherwise
not required to be printed always due to their high rate (to prevent kernel ring
buffer from overflowing), while at the same time required to be printed.

Signed-off-by: Raghavendra D Prabhu <rprabhu@wnohang.net>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_linux.h
fs/xfs/xfs_message.h