All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ubifs: silence error output if MS_SILENT is set
@ 2016-06-18  9:52 Daniel Golle
  2016-06-18 12:57 ` Richard Weinberger
  2016-06-18 14:12 ` [PATCH v2] " Daniel Golle
  0 siblings, 2 replies; 8+ messages in thread
From: Daniel Golle @ 2016-06-18  9:52 UTC (permalink / raw)
  To: linux-mtd; +Cc: Artem Bityutskiy

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 fs/ubifs/super.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 7034995..ae32b3c 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2108,8 +2108,9 @@ static struct dentry *ubifs_mount(struct file_system_type *fs_type, int flags,
 	 */
 	ubi = open_ubi(name, UBI_READONLY);
 	if (IS_ERR(ubi)) {
-		pr_err("UBIFS error (pid: %d): cannot open \"%s\", error %d",
-		       current->pid, name, (int)PTR_ERR(ubi));
+		if (flags & MS_SILENT)
+			pr_err("UBIFS error (pid: %d): cannot open \"%s\", error %d",
+			       current->pid, name, (int)PTR_ERR(ubi));
 		return ERR_CAST(ubi);
 	}
 
-- 
2.8.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-06-18 16:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-18  9:52 [PATCH] ubifs: silence error output if MS_SILENT is set Daniel Golle
2016-06-18 12:57 ` Richard Weinberger
2016-06-18 13:42   ` Daniel Golle
2016-06-18 14:47     ` Richard Weinberger
2016-06-18 14:12 ` [PATCH v2] " Daniel Golle
2016-06-18 14:57   ` Richard Weinberger
2016-06-18 15:53     ` [PATCH v3] " Daniel Golle
2016-06-18 16:16       ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.