[PATCH] ubifs: silence error output if MS_SILENT is set
Richard Weinberger
richard.weinberger at gmail.com
Sat Jun 18 05:57:22 PDT 2016
On Sat, Jun 18, 2016 at 11:52 AM, Daniel Golle <daniel at makrotopia.org> wrote:
> Signed-off-by: Daniel Golle <daniel at 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));
This needs a more detailed explanation.
Why does UBIFS need this? Only very few filesystems care about MS_SILENT.
What problem are you trying to address?
--
Thanks,
//richard
More information about the linux-mtd
mailing list