]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] end_buffer_async_read printk ratelimiting
authorAndrew Morton <akpm@osdl.org>
Sat, 19 Feb 2005 07:47:55 +0000 (23:47 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 19 Feb 2005 07:47:55 +0000 (23:47 -0800)
ratelimit the disk I/O error reporting in end_buffer_async_read().

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/buffer.c

index 2a6285bf9a88ba8d6d06e6e55cf29f53826a5db4..3c40d6382925b12a01f88c60a4ecafda4d2146dc 100644 (file)
@@ -550,7 +550,8 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate)
                set_buffer_uptodate(bh);
        } else {
                clear_buffer_uptodate(bh);
-               buffer_io_error(bh);
+               if (printk_ratelimit())
+                       buffer_io_error(bh);
                SetPageError(page);
        }