fs/ext4/inode.c: use pr_warn_ratelimited()
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 13 Jan 2011 00:59:13 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:05 +0000 (08:03 -0800)
pr_warning_ratelimited() doesn't exist.

Also include printk.h, which defines these things.

Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext4/inode.c

index e80fc513eacc4994c9968d0abaf2fa4330da8cdf..549465fef7e9b0137cceaef78c52a2d147b98229 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/bio.h>
 #include <linux/workqueue.h>
 #include <linux/kernel.h>
+#include <linux/printk.h>
 #include <linux/slab.h>
 #include <linux/ratelimit.h>
 
@@ -3737,7 +3738,7 @@ static int ext4_set_bh_endio(struct buffer_head *bh, struct inode *inode)
 retry:
        io_end = ext4_init_io_end(inode, GFP_ATOMIC);
        if (!io_end) {
-               pr_warning_ratelimited("%s: allocation fail\n", __func__);
+               pr_warn_ratelimited("%s: allocation fail\n", __func__);
                schedule();
                goto retry;
        }