From: Michal Hocko <mhocko@suse.com>
To: zhongjiang <zhongjiang@huawei.com>
Cc: dan.j.williams@intel.com, hannes@cmpxchg.org, linux-mm@kvack.org
Subject: Re: [PATCH] mm: respect pre-allocated storage mapping for memmap
Date: Tue, 17 Jan 2017 11:25:32 +0100 [thread overview]
Message-ID: <20170117102532.GH19699@dhcp22.suse.cz> (raw)
In-Reply-To: <1484573885-54353-1-git-send-email-zhongjiang@huawei.com>
On Mon 16-01-17 21:38:05, zhongjiang wrote:
> From: zhong jiang <zhongjiang@huawei.com>
>
> At present, we skip the reservation storage by the driver for
> the zone_dvice. but the free pages set aside for the memmap is
> ignored. And since the free pages is only used as the memmap,
> so we can also skip the corresponding pages.
I have really hard time to understand what this patch does and why it
matters. Could you please rephrase the changelog to state, the problem,
how it affects users and what is the fix please?
> Signed-off-by: zhong jiang <zhongjiang@huawei.com>
> ---
> mm/page_alloc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index d604d25..51d8d03 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -5047,7 +5047,7 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone,
> * memory
> */
> if (altmap && start_pfn == altmap->base_pfn)
> - start_pfn += altmap->reserve;
> + start_pfn += vmem_altmap_offset(altmap);
>
> for (pfn = start_pfn; pfn < end_pfn; pfn++) {
> /*
> --
> 1.8.3.1
>
--
Michal Hocko
SUSE Labs
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2017-01-17 10:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-16 13:38 zhongjiang
2017-01-16 14:43 ` Anshuman Khandual
2017-01-17 8:14 ` zhong jiang
2017-01-17 10:25 ` Michal Hocko [this message]
2017-01-17 13:58 ` zhong jiang
2017-01-17 17:15 ` Dan Williams
2017-01-18 10:09 ` zhong jiang
2017-01-18 13:27 ` zhong jiang
2017-01-18 15:39 ` Dan Williams
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=20170117102532.GH19699@dhcp22.suse.cz \
--to=mhocko@suse.com \
--cc=dan.j.williams@intel.com \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--cc=zhongjiang@huawei.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