linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH] highmem: Remove a use of folio->page
Date: Mon, 16 Jun 2025 23:20:59 +0200	[thread overview]
Message-ID: <27d556ba-fd62-4cfc-bfc0-3065855a262a@redhat.com> (raw)
In-Reply-To: <20250613194825.3175276-1-willy@infradead.org>

On 13.06.25 21:48, Matthew Wilcox (Oracle) wrote:
> Call folio_address() instead of page_address().
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
>   include/linux/highmem-internal.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/highmem-internal.h b/include/linux/highmem-internal.h
> index 9a7683d79a4b..36053c3d6d64 100644
> --- a/include/linux/highmem-internal.h
> +++ b/include/linux/highmem-internal.h
> @@ -195,7 +195,7 @@ static inline void *kmap_local_page_try_from_panic(struct page *page)
>   
>   static inline void *kmap_local_folio(struct folio *folio, size_t offset)
>   {
> -	return page_address(&folio->page) + offset;
> +	return folio_address(folio) + offset;
>   }
>   
>   static inline void *kmap_local_page_prot(struct page *page, pgprot_t prot)

Reviewed-by: David Hildenbrand <david@redhat.com>

-- 
Cheers,

David / dhildenb



      reply	other threads:[~2025-06-16 21:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-13 19:48 Matthew Wilcox (Oracle)
2025-06-16 21:20 ` David Hildenbrand [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=27d556ba-fd62-4cfc-bfc0-3065855a262a@redhat.com \
    --to=david@redhat.com \
    --cc=akpm@linux-foundation.org \
    --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