fat: Add ratelimit to fat*_ent_bread()
Subsystems (2)
OGAWA Hirofumi
maintainerPATCH 1/1 fat: Add ratelimit to fat*_ent_bread()
fat*_ent_bread() can be the cause of too many report on I/O error path. So use fat_msg_ratelimit() instead.
Reported-by qianfan <[email protected]>
Tested-by qianfan <[email protected]>
Signed-off-by OGAWA Hirofumi <[email protected]>
--- fs/fat/fatent.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
fs/fat/fatent.c +4 -3
@@ -94,7 +94,8 @@ static int fat12_ent_bread(struct super_ err_brelse:brelse (bhs[0 ]); err: -fat_msg (sb,KERN_ERR ,"FAT read failed (blocknr %llu)" , (llu )blocknr); +fat_msg_ratelimit (sb,KERN_ERR ,"FAT read failed (blocknr %llu)" , + (llu )blocknr);return -EIO ; }
@@ -107,8 +108,8 @@ static int fat_ent_bread(struct super_bl fatent->fat_inode =MSDOS_SB (sb)->fat_inode; fatent->bhs[0 ] =sb_bread (sb, blocknr);if (!fatent->bhs[0 ]) { -fat_msg (sb,KERN_ERR ,"FAT read failed (blocknr %llu)" , - (llu )blocknr); +fat_msg_ratelimit (sb,KERN_ERR ,"FAT read failed (blocknr %llu)" , + (llu )blocknr);return -EIO ; } fatent->nr_bhs =1 ;
_
Signature · 1 line
OGAWA Hirofumi <[email protected]>