[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dd67c810-794e-9947-9ad8-81468c07c5e1@pengutronix.de>
Date: Mon, 10 Apr 2017 09:48:52 +0200
From: Oleksij Rempel <ore@...gutronix.de>
To: Oleksij Rempel <o.rempel@...gutronix.de>, richard@....at,
dedekind1@...il.com, adrian.hunter@...el.com,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: Steffen Trumtrar <s.trumtrar@...gutronix.de>
Subject: Re: [PATCH v1 1/3] UBIFS: parse iversion mount option
please ignore this patch. It need to be updated.
On 04/10/2017 08:53 AM, Oleksij Rempel wrote:
> From: Steffen Trumtrar <s.trumtrar@...gutronix.de>
>
> Signed-off-by: Steffen Trumtrar <s.trumtrar@...gutronix.de>
> Signed-off-by: Oleksij Rempel <o.rempel@...gutronix.de>
> ---
> fs/ubifs/super.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
> index b73811bd7676..61180bee38b4 100644
> --- a/fs/ubifs/super.c
> +++ b/fs/ubifs/super.c
> @@ -931,6 +931,7 @@ enum {
> Opt_chk_data_crc,
> Opt_no_chk_data_crc,
> Opt_override_compr,
> + Opt_i_version,
> Opt_err,
> };
>
> @@ -942,6 +943,7 @@ static const match_table_t tokens = {
> {Opt_chk_data_crc, "chk_data_crc"},
> {Opt_no_chk_data_crc, "no_chk_data_crc"},
> {Opt_override_compr, "compr=%s"},
> + {Opt_i_version, "iversion"},
> {Opt_err, NULL},
> };
>
> @@ -986,6 +988,8 @@ static int ubifs_parse_options(struct ubifs_info *c, char *options,
> return 0;
>
> while ((p = strsep(&options, ","))) {
> + struct super_block *sb = c->vfs_sb;
> + unsigned long flag;
> int token;
>
> if (!*p)
> @@ -1042,11 +1046,11 @@ static int ubifs_parse_options(struct ubifs_info *c, char *options,
> c->default_compr = c->mount_opts.compr_type;
> break;
> }
> + case Opt_i_version:
> + sb->s_flags |= MS_I_VERSION;
> + break;
> default:
> {
> - unsigned long flag;
> - struct super_block *sb = c->vfs_sb;
> -
> flag = parse_standard_option(p);
> if (!flag) {
> ubifs_err(c, "unrecognized mount option \"%s\" or missing value",
>
Powered by blists - more mailing lists