From: Shaohua Li <shli@kernel.org>
To: JackieLiu <liuyun01@kylinos.cn>
Cc: songliubraving@fb.com, liuzhengyuan@kylinos.cn, shli@fb.com,
linux-raid@vger.kernel.org
Subject: Re: [PATCH] md/raid5-cache: no recovery is required when create super-block
Date: Wed, 7 Dec 2016 09:26:53 -0800 [thread overview]
Message-ID: <20161207172653.keer2kabdu6xgrqa@kernel.org> (raw)
In-Reply-To: <20161206061317.4388-1-liuyun01@kylinos.cn>
On Tue, Dec 06, 2016 at 02:13:17PM +0800, JackieLiu wrote:
> When create the super-block information, We do not need to do this
> recovery stage, only need to initialize some variables.
This makes sense.
please do look at Documentation/SubmittingPatches. I can't apply patch without
'signed-off-by'.
> ---
> drivers/md/raid5-cache.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
> index c3b3124..96f25df 100644
> --- a/drivers/md/raid5-cache.c
> +++ b/drivers/md/raid5-cache.c
> @@ -2545,7 +2545,13 @@ static int r5l_load_log(struct r5l_log *log)
>
> __free_page(page);
>
> - ret = r5l_recovery_log(log);
> + if (create_super) {
> + log->log_start = r5l_ring_add(log, cp, BLOCK_SECTORS);
> + log->seq = log->last_cp_seq + 1;
> + log->next_checkpoint = cp;
must set ret = 0 here. Next time please make sure there isn't compiling
warnning.
Thanks,
Shaohua
next prev parent reply other threads:[~2016-12-07 17:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 6:13 [PATCH] md/raid5-cache: no recovery is required when create super-block JackieLiu
2016-12-07 17:26 ` Shaohua Li [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-12-08 0:47 JackieLiu
2016-12-08 18:00 ` Shaohua Li
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=20161207172653.keer2kabdu6xgrqa@kernel.org \
--to=shli@kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=liuyun01@kylinos.cn \
--cc=liuzhengyuan@kylinos.cn \
--cc=shli@fb.com \
--cc=songliubraving@fb.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).