mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
highmem: remove a use of folio->page
Call folio_address() instead of page_address(). Link: https://lkml.kernel.org/r/20250613194825.3175276-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
32925ee63b
commit
9e82db9c0c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user