[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191117174413.2876-1-pakki001@umn.edu>
Date: Sun, 17 Nov 2019 11:44:12 -0600
From: Aditya Pakki <pakki001@....edu>
To: pakki001@....edu
Cc: kjlu@....edu, David Woodhouse <dwmw2@...radead.org>,
Richard Weinberger <richard@....at>,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] jffs2: Reduce the severity level of logging errors
Unlike other instances of critical errors that call BUG(), kmalloc
failure in jffs2_wbuf_recover does not require pr_crit. Replace this
error logging with pr_warn().
Signed-off-by: Aditya Pakki <pakki001@....edu>
---
fs/jffs2/wbuf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
index c6821a509481..59e145220b51 100644
--- a/fs/jffs2/wbuf.c
+++ b/fs/jffs2/wbuf.c
@@ -339,7 +339,7 @@ static void jffs2_wbuf_recover(struct jffs2_sb_info *c)
buf = kmalloc(end - start, GFP_KERNEL);
if (!buf) {
- pr_crit("Malloc failure in wbuf recovery. Data loss ensues.\n");
+ pr_warn("Malloc failure in wbuf recovery. Data loss ensues.\n");
goto read_failed;
}
@@ -354,7 +354,7 @@ static void jffs2_wbuf_recover(struct jffs2_sb_info *c)
ret = 0;
if (ret || retlen != c->wbuf_ofs - start) {
- pr_crit("Old data are already lost in wbuf recovery. Data loss ensues.\n");
+ pr_warn("Old data are already lost in wbuf recovery. Data loss ensues.\n");
kfree(buf);
buf = NULL;
--
2.17.1
Powered by blists - more mailing lists