From: Mike Rapoport <rppt@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>,
linux-mm@kvack.org, David Hildenbrand <david@redhat.com>,
Oscar Salvador <osalvador@suse.de>,
linux-kernel@vger.kernel.org, Vlastimil Babka <vbabka@suse.cz>
Subject: Re: [PATCH v2 4/3] memblock tests: add new pageblock related macro
Date: Thu, 8 Sep 2022 07:16:17 +0300 [thread overview]
Message-ID: <YxlskUbwXSiYr7hC@kernel.org> (raw)
In-Reply-To: <20220907082643.186979-1-wangkefeng.wang@huawei.com>
Andrew,
Do you mind taking this along with the pageblock macros series?
On Wed, Sep 07, 2022 at 04:26:43PM +0800, Kefeng Wang wrote:
> Add new pageblock_start_pfn() and pageblock_align() macro
> which are needed by memblock tests.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
> tools/testing/memblock/linux/mmzone.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tools/testing/memblock/linux/mmzone.h b/tools/testing/memblock/linux/mmzone.h
> index 7c2eb5c9bb54..e65f89b12f1c 100644
> --- a/tools/testing/memblock/linux/mmzone.h
> +++ b/tools/testing/memblock/linux/mmzone.h
> @@ -22,6 +22,8 @@ enum zone_type {
>
> #define pageblock_order (MAX_ORDER - 1)
> #define pageblock_nr_pages BIT(pageblock_order)
> +#define pageblock_align(pfn) ALIGN((pfn), pageblock_nr_pages)
> +#define pageblock_start_pfn(pfn) ALIGN_DOWN((pfn), pageblock_nr_pages)
>
> struct zone {
> atomic_long_t managed_pages;
> --
> 2.35.3
>
--
Sincerely yours,
Mike.
prev parent reply other threads:[~2022-09-08 4:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-07 8:26 [PATCH v2 4/3] memblock tests: add new pageblock related macro Kefeng Wang
2022-09-08 4:16 ` Mike Rapoport [this message]
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=YxlskUbwXSiYr7hC@kernel.org \
--to=rppt@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=osalvador@suse.de \
--cc=vbabka@suse.cz \
--cc=wangkefeng.wang@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 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.