linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Michal Hocko <mhocko@suse.com>,
	Oscar Salvador <osalvador@suse.de>,
	Rafael Parra <rparrazo@redhat.com>
Subject: Re: [PATCH v1 2/2] drivers/base/memory: determine and store zone for single-zone memory blocks
Date: Mon, 31 Jan 2022 11:42:09 +0100	[thread overview]
Message-ID: <4632dc1a-e561-f04e-421c-a770f9271bbd@redhat.com> (raw)
In-Reply-To: <20220128152620.168715-3-david@redhat.com>

>  			 !IS_ALIGNED(start_pfn, pageblock_nr_pages) ||
> -			 !IS_ALIGNED(start_pfn + nr_pages, PAGES_PER_SECTION)))
> +			 !IS_ALIGNED(start_pfn + nr_pages, PAGES_PER_SECTION) ||
> +			 page_zone(pfn_to_page(start_pfn)) != zone ||
> +			 page_zone(pfn_to_page(end_pfn - 1)) != zone))

I just realized that we have to do these sanity checks after our check
for memory holes.

-- 
Thanks,

David / dhildenb



  reply	other threads:[~2022-01-31 10:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-28 15:26 [PATCH v1 0/2] " David Hildenbrand
2022-01-28 15:26 ` [PATCH v1 1/2] drivers/base/node: rename link_mem_sections() to register_memory_block_under_node() David Hildenbrand
2022-01-31 10:38   ` Oscar Salvador
2022-01-28 15:26 ` [PATCH v1 2/2] drivers/base/memory: determine and store zone for single-zone memory blocks David Hildenbrand
2022-01-31 10:42   ` David Hildenbrand [this message]
2022-01-31 11:29   ` Oscar Salvador
2022-01-31 11:40     ` David Hildenbrand
2022-01-31 11:42     ` David Hildenbrand

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=4632dc1a-e561-f04e-421c-a770f9271bbd@redhat.com \
    --to=david@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=osalvador@suse.de \
    --cc=rafael@kernel.org \
    --cc=rparrazo@redhat.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