|
@@ -25,6 +25,7 @@
|
|
#include <linux/kernel.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/mm.h>
|
|
|
|
+#include <linux/ratelimit.h>
|
|
|
|
|
|
#include "ext4_jbd2.h"
|
|
#include "ext4_jbd2.h"
|
|
#include "xattr.h"
|
|
#include "xattr.h"
|
|
@@ -55,7 +56,7 @@ void ext4_exit_pageio(void)
|
|
static void buffer_io_error(struct buffer_head *bh)
|
|
static void buffer_io_error(struct buffer_head *bh)
|
|
{
|
|
{
|
|
char b[BDEVNAME_SIZE];
|
|
char b[BDEVNAME_SIZE];
|
|
- printk(KERN_ERR "Buffer I/O error on device %s, logical block %llu\n",
|
|
|
|
|
|
+ printk_ratelimited(KERN_ERR "Buffer I/O error on device %s, logical block %llu\n",
|
|
bdevname(bh->b_bdev, b),
|
|
bdevname(bh->b_bdev, b),
|
|
(unsigned long long)bh->b_blocknr);
|
|
(unsigned long long)bh->b_blocknr);
|
|
}
|
|
}
|