From bb3bb915bd06f71623bea1af2a73bf9271ecb43a Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Wed, 2 Aug 2017 20:58:29 -0700 Subject: f2fs: use printk_ratelimited for f2fs_msg This patch reduces contention of printks. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 5e7a91aec..22e10b283 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -158,7 +158,7 @@ void f2fs_msg(struct super_block *sb, const char *level, const char *fmt, ...) va_start(args, fmt); vaf.fmt = fmt; vaf.va = &args; - printk("%sF2FS-fs (%s): %pV\n", level, sb->s_id, &vaf); + printk_ratelimited("%sF2FS-fs (%s): %pV\n", level, sb->s_id, &vaf); va_end(args); } -- cgit v1.2.3