From: Richard Weinberger <richard@nod.at>
To: Daniel Golle <daniel@makrotopia.org>, linux-mtd@lists.infradead.org
Cc: Artem Bityutskiy <dedekind1@gmail.com>,
Richard Weinberger <richard.weinberger@gmail.com>
Subject: Re: [PATCH v3] ubifs: silence error output if MS_SILENT is set
Date: Sat, 18 Jun 2016 18:16:53 +0200 [thread overview]
Message-ID: <576573F5.8040507@nod.at> (raw)
In-Reply-To: <20160618155318.GA4285@makrotopia.org>
Am 18.06.2016 um 17:53 schrieb Daniel Golle:
> This change completes
> commit 90bea5a3f0bf680b87b90516f3c231997f4b8f3b
> which already implements support for MS_SILENT except for that one
> error message which is still being displayed despite MS_SILENT being
> set. Suppress that error message as well in case MS_SILENT is set.
>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
> ---
> v2: logic was accidentally inverted, fix that.
> v3: add patch description
>
> 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..736dd58 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);
> }
I'll queue this patch for v4.8.
Thanks,
//richard
prev parent reply other threads:[~2016-06-18 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=576573F5.8040507@nod.at \
--to=richard@nod.at \
--cc=daniel@makrotopia.org \
--cc=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=richard.weinberger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.