Re: [PATCH 4/9] fs:ubifs: add hook for UBI bakvol in ubifs layer

From: Boris Brezillon
Date: Mon Sep 28 2015 - 07:22:17 EST


On Mon, 28 Sep 2015 07:02:52 +0000
Bean Huo éææ (beanhuo) <beanhuo@xxxxxxxxxx> wrote:

> Add hook for UBI bakvol in ubifs layer.
>
> open/close bakvol operation in ubifs mount.
>
> Signed-off-by: Bean Huo <beanhuo@xxxxxxxxxx>
> ---
> fs/ubifs/super.c | 6 ++++++
> fs/ubifs/ubifs.h | 1 +
> 2 files changed, 7 insertions(+)
>
> diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
> index 9547a278..f3bf548 100644
> --- a/fs/ubifs/super.c
> +++ b/fs/ubifs/super.c
> @@ -1463,6 +1463,8 @@ static int mount_ubifs(struct ubifs_info *c)
> dbg_gen("max. seq. number: %llu", c->max_sqnum);
> dbg_gen("commit number: %llu", c->cmt_no);
>
> + init_bakvol(c->ubi, 1);

This function is implemented in patch 9 and you're using it here, which
means your series is not bisectable.

Also, do we really want to let UBIFS decide whether this feature should
be enabled or not for the whole UBI device?

--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/