All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
To: zhouwj-fnst@cn.fujitsu.com
Cc: kexec@lists.infradead.org
Subject: Re: [PATCH v1 4/4] Use write_kdump_page instead of write_cache in write_kdump_pages_cyclic
Date: Wed, 15 Jul 2015 11:32:27 +0900 (JST)	[thread overview]
Message-ID: <20150715.113227.481108557.d.hatayama@jp.fujitsu.com> (raw)
In-Reply-To: <1436495333-22892-5-git-send-email-zhouwj-fnst@cn.fujitsu.com>

From: Zhou Wenjian <zhouwj-fnst@cn.fujitsu.com>
Subject: [PATCH v1 4/4] Use write_kdump_page instead of write_cache in write_kdump_pages_cyclic
Date: Fri, 10 Jul 2015 10:28:53 +0800

Please write patch description.

> Signed-off-by: Zhou Wenjian <zhouwj-fnst@cn.fujitsu.com>
> ---
>  makedumpfile.c | 16 +++++-----------
>  1 file changed, 5 insertions(+), 11 deletions(-)
> 
> diff --git a/makedumpfile.c b/makedumpfile.c
> index 74bf83e..0f1aa94 100644
> --- a/makedumpfile.c
> +++ b/makedumpfile.c
> @@ -6515,17 +6515,11 @@ write_kdump_pages_cyclic(struct cache_data *cd_header, struct cache_data *cd_pag
>  		pd.offset     = *offset_data;
>  		*offset_data  += pd.size;
>  
> -                /*
> -                 * Write the page header.
> -                 */
> -                if (!write_cache(cd_header, &pd, sizeof(page_desc_t)))
> -                        goto out;
> -
> -                /*
> -                 * Write the page data.
> -                 */
> -		if (!write_cache(cd_page, pd.flags ? buf_out : buf, pd.size))
> -                        goto out;
> +               /*
> +                * Write the page header and the page data
> +                */
> +               if (!write_kdump_page(cd_header, cd_page, &pd, pd.flags ? buf_out : buf))
> +                       goto out;
>          }
>  
>  	ret = TRUE;
> -- 
> 1.8.3.1
> 
> 
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
--
Thanks.
HATAYAMA, Daisuke


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2015-07-15  2:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-10  2:28 [PATCH v1 0/4] makedumpfile: optimize the way of generating incomplete kdump core Zhou Wenjian
2015-07-10  2:28 ` [PATCH v1 1/4] Add write_cd_buf Zhou Wenjian
2015-07-15  2:35   ` HATAYAMA Daisuke
2015-07-10  2:28 ` [PATCH v1 2/4] Add get_pfn_offset Zhou Wenjian
2015-07-15  2:56   ` HATAYAMA Daisuke
2015-07-10  2:28 ` [PATCH v1 3/4] Add write_kdump_page Zhou Wenjian
2015-07-15  3:09   ` HATAYAMA Daisuke
2015-07-10  2:28 ` [PATCH v1 4/4] Use write_kdump_page instead of write_cache in write_kdump_pages_cyclic Zhou Wenjian
2015-07-15  2:32   ` HATAYAMA Daisuke [this message]
2015-07-15  2:36   ` HATAYAMA Daisuke
2015-07-15  2:31 ` [PATCH v1 0/4] makedumpfile: optimize the way of generating incomplete kdump core HATAYAMA Daisuke

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=20150715.113227.481108557.d.hatayama@jp.fujitsu.com \
    --to=d.hatayama@jp.fujitsu.com \
    --cc=kexec@lists.infradead.org \
    --cc=zhouwj-fnst@cn.fujitsu.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.