Commit fb0e9db9 authored by OGAWA Hirofumi's avatar OGAWA Hirofumi Committed by Andrew Morton
Browse files

fat: fix too many log in fat_chain_add()

This log was excessive for a serial console.  So use the ratelimited
version instead.

Link: https://lkml.kernel.org/r/87qzy611d9.fsf@mail.parknet.co.jp


Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Reported-by: default avatar <syzbot+fa7ef54f66c189c04b73@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=fa7ef54f66c189c04b73


Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 53f43389
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -158,8 +158,8 @@ int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster)
			mark_inode_dirty(inode);
	}
	if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) {
		fat_fs_error(sb, "clusters badly computed (%d != %llu)",
			     new_fclus,
		fat_fs_error_ratelimit(
			sb, "clusters badly computed (%d != %llu)", new_fclus,
			(llu)(inode->i_blocks >> (sbi->cluster_bits - 9)));
		fat_cache_inval_inode(inode);
	}