diff options
author | Rich Johnston <rjohnston@sgi.com> | 2013-03-27 09:26:49 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-04-03 13:20:39 -0500 |
commit | 3d6e036193bfa67a8a1cc1908fe910c7a014d183 (patch) | |
tree | e48b9f00a87d1188fd8537d51efd70854f5c8683 /fs/xfs/xfs_linux.h | |
parent | ff9a28f6c25d18a635abcab1f49db68108203dfb (diff) |
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>
Diffstat (limited to 'fs/xfs/xfs_linux.h')
-rw-r--r-- | fs/xfs/xfs_linux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_linux.h b/fs/xfs/xfs_linux.h index fe7e4df85a7b..14e59d953b7b 100644 --- a/fs/xfs/xfs_linux.h +++ b/fs/xfs/xfs_linux.h @@ -72,6 +72,7 @@ #include <linux/kthread.h> #include <linux/freezer.h> #include <linux/list_sort.h> +#include <linux/ratelimit.h> #include <asm/page.h> #include <asm/div64.h> |