Skip to content

Commit fb0e9db

Browse files
OGAWAHirofumiakpm00
authored andcommitted
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/[email protected] Signed-off-by: OGAWA Hirofumi <[email protected]> Reported-by: [email protected] Closes: https://syzkaller.appspot.com/bug?extid=fa7ef54f66c189c04b73 Cc: Namjae Jeon <[email protected]> Cc: Sungjong Seo <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 53f4338 commit fb0e9db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/fat/misc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster)
158158
mark_inode_dirty(inode);
159159
}
160160
if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) {
161-
fat_fs_error(sb, "clusters badly computed (%d != %llu)",
162-
new_fclus,
163-
(llu)(inode->i_blocks >> (sbi->cluster_bits - 9)));
161+
fat_fs_error_ratelimit(
162+
sb, "clusters badly computed (%d != %llu)", new_fclus,
163+
(llu)(inode->i_blocks >> (sbi->cluster_bits - 9)));
164164
fat_cache_inval_inode(inode);
165165
}
166166
inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9);

0 commit comments

Comments
 (0)