From: Muchun Song <songmuchun@bytedance.com>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [PATCH 1/2] mm: Add pvmw_set_page()
Date: Tue, 8 Feb 2022 16:04:32 +0800 [thread overview]
Message-ID: <CAMZfGtX2PT1E4O6W1yuUWj_Ym1Kv1b9hXrzq18C+Wj6FfGMd7A@mail.gmail.com> (raw)
In-Reply-To: <20220203171904.609984-1-willy@infradead.org>
On Fri, Feb 4, 2022 at 1:19 AM Matthew Wilcox (Oracle)
<willy@infradead.org> wrote:
>
> Instead of setting the page directly in struct page_vma_mapped_walk,
> use this helper to allow us to transition to a PFN approach in the
> next patch.
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
> include/linux/rmap.h | 6 ++++++
> kernel/events/uprobes.c | 2 +-
> mm/damon/paddr.c | 4 ++--
> mm/ksm.c | 2 +-
> mm/migrate.c | 2 +-
> mm/page_idle.c | 2 +-
> mm/rmap.c | 12 ++++++------
> 7 files changed, 18 insertions(+), 12 deletions(-)
>
> diff --git a/include/linux/rmap.h b/include/linux/rmap.h
> index e704b1a4c06c..003bb5775bb1 100644
> --- a/include/linux/rmap.h
> +++ b/include/linux/rmap.h
> @@ -213,6 +213,12 @@ struct page_vma_mapped_walk {
> unsigned int flags;
> };
>
> +static inline void pvmw_set_page(struct page_vma_mapped_walk *pvmw,
> + struct page *page)
> +{
> + pvmw->page = page;
> +}
> +
Hi Matthew,
How about the name pvmw_set_pfn_from_page()?
When I looked at your next patch, I'm feeling this helper
is used to set up the pfn from a page instead of setting up
the page.
Thanks.
next prev parent reply other threads:[~2022-02-08 8:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-03 17:19 Matthew Wilcox (Oracle)
2022-02-03 17:19 ` [PATCH 2/2] mm: Convert page_vma_mapped_walk to work on PFNs Matthew Wilcox (Oracle)
2022-02-04 1:30 ` kernel test robot
2022-02-04 1:30 ` kernel test robot
2022-02-08 8:04 ` Muchun Song [this message]
2022-02-08 14:49 ` [PATCH 1/2] mm: Add pvmw_set_page() Matthew Wilcox
2022-02-09 3:11 ` Muchun Song
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=CAMZfGtX2PT1E4O6W1yuUWj_Ym1Kv1b9hXrzq18C+Wj6FfGMd7A@mail.gmail.com \
--to=songmuchun@bytedance.com \
--cc=linux-mm@kvack.org \
--cc=willy@infradead.org \
/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