mirror of https://github.com/torvalds/linux.git
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: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Reported-by: 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: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
53f433891e
commit
fb0e9db99e
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue