diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-12-17 10:40:47 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-12-17 10:40:47 -0500 |
commit | a8901d34872dafcafa23efa0865dcecfd4fddf8c (patch) | |
tree | e593fa23bd961b693440966f84e421c5d7a2b5f4 /fs/ext4/inode.c | |
parent | 225db7d35c33f076115a583abec238a696f4467e (diff) |
ext4: Use pr_warning_ratelimited() instead of printk_ratelimit()
printk_ratelimit() is deprecated since it is a global instead of a
per-printk ratelimit.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index db3cc913ee8f..c0fe426d444a 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/workqueue.h> | 40 | #include <linux/workqueue.h> |
41 | #include <linux/kernel.h> | 41 | #include <linux/kernel.h> |
42 | #include <linux/slab.h> | 42 | #include <linux/slab.h> |
43 | #include <linux/ratelimit.h> | ||
43 | 44 | ||
44 | #include "ext4_jbd2.h" | 45 | #include "ext4_jbd2.h" |
45 | #include "xattr.h" | 46 | #include "xattr.h" |
@@ -3729,8 +3730,7 @@ static int ext4_set_bh_endio(struct buffer_head *bh, struct inode *inode) | |||
3729 | retry: | 3730 | retry: |
3730 | io_end = ext4_init_io_end(inode, GFP_ATOMIC); | 3731 | io_end = ext4_init_io_end(inode, GFP_ATOMIC); |
3731 | if (!io_end) { | 3732 | if (!io_end) { |
3732 | if (printk_ratelimit()) | 3733 | pr_warning_ratelimited("%s: allocation fail\n", __func__); |
3733 | printk(KERN_WARNING "%s: allocation fail\n", __func__); | ||
3734 | schedule(); | 3734 | schedule(); |
3735 | goto retry; | 3735 | goto retry; |
3736 | } | 3736 | } |