* + fat-fix-too-many-log-in-fat_chain_add.patch added to mm-nonmm-unstable branch
@ 2025-07-24 20:37 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-07-24 20:37 UTC (permalink / raw)
To: mm-commits, sj1557.seo, linkinjeon, hirofumi, akpm
The patch titled
Subject: fat: fix too many log in fat_chain_add()
has been added to the -mm mm-nonmm-unstable branch. Its filename is
fat-fix-too-many-log-in-fat_chain_add.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/fat-fix-too-many-log-in-fat_chain_add.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Subject: fat: fix too many log in fat_chain_add()
Date: Thu, 24 Jul 2025 16:42:10 +0900
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>
---
fs/fat/misc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/fs/fat/misc.c~fat-fix-too-many-log-in-fat_chain_add
+++ a/fs/fat/misc.c
@@ -158,9 +158,9 @@ int fat_chain_add(struct inode *inode, i
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,
- (llu)(inode->i_blocks >> (sbi->cluster_bits - 9)));
+ 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);
}
inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9);
_
Patches currently in -mm which might be from hirofumi@mail.parknet.co.jp are
fat-fix-too-many-log-in-fat_chain_add.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-24 20:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24 20:37 + fat-fix-too-many-log-in-fat_chain_add.patch added to mm-nonmm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.