All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] fat-use-fat_msg_ratelimit-in-fat__get_entry.patch removed from -mm tree
@ 2012-06-01 19:33 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2012-06-01 19:33 UTC (permalink / raw)
  To: linkinjeon, amit.sahrawat83, hirofumi, mm-commits


The patch titled
     Subject: fat: use fat_msg_ratelimit() in fat__get_entry()
has been removed from the -mm tree.  Its filename was
     fat-use-fat_msg_ratelimit-in-fat__get_entry.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
From: Namjae Jeon <linkinjeon@gmail.com>
Subject: fat: use fat_msg_ratelimit() in fat__get_entry()

If an application tries to lookup (opendir/readdir/stat) 5000 files on a
fatfs USB device and the device is unplugged, many message occur, shown
below.  This makes the application slow.  So use the new
fat_msg_ratelimit() decrease the messaging rate.

#> ./file_lookup_testcase ./files_directory/
[   57.768000] usb 2-1.4: USB disconnect, device number 4
[   57.812000] FAT-fs (sda1): FAT read failed (blocknr 2631)
stat failed
[   57.816000] FAT-fs (sda1): Directory bread(block 396816) failed
[   57.824000] FAT-fs (sda1): Directory bread(block 396817) failed
: No such file [   57.832000] FAT-fs (sda1): Directory bread(block 396818) failed
or directory
[   57.840000] FAT-fs (sda1): Directory bread(block 396819) failed
[   57.848000] FAT-fs (sda1): Directory bread(block 396820) failed
[   57.860000] FAT-fs (sda1): Directory bread(block 396821) failed
[   57.876000] FAT-fs (sda1): Directory bread(block 396822) failed
[   57.892000] FAT-fs (sda1): Directory bread(block 396823) failed
[   57.904000] FAT-fs (sda1): Directory bread(block 406824) failed
[   57.920000] FAT-fs (sda1): Directory bread(block 406825) failed
[   57.932000] FAT-fs (sda1): Directory bread(block 406826) failed
[   57.940000] FAT-fs (sda1): Directory bread(block 406827) failed
[   57.952000] FAT-fs (sda1): Directory bread(block 406828) failed
[   57.960000] FAT-fs (sda1): Directory bread(block 406829) failed
[   57.964000] FAT-fs (sda1): Directory bread(block 406830) failed
[   57.972000] FAT-fs (sda1): Directory bread(block 406831) failed
[   57.976000] FAT-fs (sda1): Directory bread(block 417696) failed
[   57.984000] FAT-fs (sda1): Directory bread(block 417697) failed
[   57.988000] FAT-fs (sda1): Directory bread(block 417698) failed
[   57.996000] FAT-fs (sda1): Directory bread(block 417699) failed
[   58.000000] FAT-fs (sda1): Directory bread(block 417700) failed
[   58.004000] FAT-fs (sda1): Directory bread(block 417701) failed
[   58.012000] FAT-fs (sda1): Directory bread(block 417702) failed
[   58.016000] FAT-fs (sda1): Directory bread(block 417703) failed
[   58.024000] FAT-fs (sda1): FAT read failed (blocknr 2631)
stat[   58.028000] FAT-fs (sda1): Directory bread(block 396816) failed
[   58.036000] FAT-fs (sda1): Directory bread(block 396817) failed
[   58.040000] FAT-fs (sda1): Directory bread(block 396818) failed
[   58.048000] FAT-fs (sda1): Directory bread(block 396819) failed
[   58.052000] FAT-fs (sda1): Directory bread(block 396820) failed
[   58.060000] FAT-fs (sda1): Directory bread(block 396821) failed

Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/fat/dir.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN fs/fat/dir.c~fat-use-fat_msg_ratelimit-in-fat__get_entry fs/fat/dir.c
--- a/fs/fat/dir.c~fat-use-fat_msg_ratelimit-in-fat__get_entry
+++ a/fs/fat/dir.c
@@ -98,8 +98,8 @@ next:
 
 	*bh = sb_bread(sb, phys);
 	if (*bh == NULL) {
-		fat_msg(sb, KERN_ERR, "Directory bread(block %llu) failed",
-		       (llu)phys);
+		fat_msg_ratelimit(sb, KERN_ERR,
+			"Directory bread(block %llu) failed", (llu)phys);
 		/* skip this block */
 		*pos = (iblock + 1) << sb->s_blocksize_bits;
 		goto next;
_

Patches currently in -mm which might be from linkinjeon@gmail.com are

origin.patch
drivers-scsi-ufs-reverse-the-ufshcd_is_device_present-logic.patch
ufs-fix-incorrect-return-value-about-success-and-failed.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-01 19:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-01 19:33 [merged] fat-use-fat_msg_ratelimit-in-fat__get_entry.patch removed from -mm tree akpm

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.