From: Theodore Ts'o Date: Fri, 17 Dec 2010 15:40:47 +0000 (-0500) Subject: ext4: Use pr_warning_ratelimited() instead of printk_ratelimit() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8901d34872dafcafa23efa0865dcecfd4fddf8c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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" --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index db3cc913ee8..c0fe426d444 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -40,6 +40,7 @@ #include #include #include +#include #include "ext4_jbd2.h" #include "xattr.h" @@ -3729,8 +3730,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) { - if (printk_ratelimit()) - printk(KERN_WARNING "%s: allocation fail\n", __func__); + pr_warning_ratelimited("%s: allocation fail\n", __func__); schedule(); goto retry; }