From: Yang Shi <shy828301@gmail.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Andrew Morton <akpm@linux-foundation.org>, Linux MM <linux-mm@kvack.org>
Subject: Re: [PATCH] mm: fix the try_to_unmap prototype for !CONFIG_MMU
Date: Tue, 6 Jul 2021 13:41:44 -0700 [thread overview]
Message-ID: <CAHbLzkrvH8mZM=A8HU54wpdSeeVovYS9x1ACo9NCgFsyxsUTWQ@mail.gmail.com> (raw)
In-Reply-To: <20210705053944.885828-1-hch@lst.de>
On Sun, Jul 4, 2021 at 10:40 PM Christoph Hellwig <hch@lst.de> wrote:
>
> Adjust the nommu stub of try_to_unmap to match the changed protype
> for the full version. Turn it into an inline instead of a macro to
> generally improve the type checking.
Thanks for catching this. Reviewed-by: Yang Shi <shy828301@gmail.com>
>
> Fixes: 1fb08ac63bee ("mm: rmap: make try_to_unmap() void function")
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> include/linux/rmap.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/include/linux/rmap.h b/include/linux/rmap.h
> index 83fb86133fe1..c976cc6de257 100644
> --- a/include/linux/rmap.h
> +++ b/include/linux/rmap.h
> @@ -291,7 +291,9 @@ static inline int page_referenced(struct page *page, int is_locked,
> return 0;
> }
>
> -#define try_to_unmap(page, refs) false
> +static inline void try_to_unmap(struct page *page, enum ttu_flags flags)
> +{
> +}
>
> static inline int page_mkclean(struct page *page)
> {
> --
> 2.30.2
>
>
prev parent reply other threads:[~2021-07-06 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-05 5:39 Christoph Hellwig
2021-07-06 20:41 ` Yang Shi [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='CAHbLzkrvH8mZM=A8HU54wpdSeeVovYS9x1ACo9NCgFsyxsUTWQ@mail.gmail.com' \
--to=shy828301@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=hch@lst.de \
--cc=linux-mm@kvack.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