linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Unify vma_address and vma_pgoff_address
@ 2024-03-28 22:58 Matthew Wilcox (Oracle)
  2024-03-28 22:58 ` [PATCH 1/3] mm: Correct page_mapped_in_vma() for large folios Matthew Wilcox (Oracle)
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Matthew Wilcox (Oracle) @ 2024-03-28 22:58 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Matthew Wilcox (Oracle), linux-mm

The current vma_address() pretends that the ambiguity between head &
tail page is an advantage.  If you pass a head page to vma_address(), it
will operate on all pages in the folio, while if you pass a tail page,
it will operate on a single page.  That's not what any of the callers
actually want, so first convert all callers to use vma_pgoff_address()
and then rename vma_pgoff_address() to vma_address().

Matthew Wilcox (Oracle) (3):
  mm: Correct page_mapped_in_vma() for large folios
  mm: Remove vma_address()
  mm: Rename vma_pgoff_address back to vma_address

 mm/internal.h        | 28 ++++++++++------------------
 mm/memory-failure.c  |  2 +-
 mm/page_vma_mapped.c |  4 +++-
 mm/rmap.c            | 14 ++++++++++----
 4 files changed, 24 insertions(+), 24 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-02 10:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-28 22:58 [PATCH 0/3] Unify vma_address and vma_pgoff_address Matthew Wilcox (Oracle)
2024-03-28 22:58 ` [PATCH 1/3] mm: Correct page_mapped_in_vma() for large folios Matthew Wilcox (Oracle)
2024-04-02 10:07   ` David Hildenbrand
2024-03-28 22:58 ` [PATCH 2/3] mm: Remove vma_address() Matthew Wilcox (Oracle)
2024-03-28 22:58 ` [PATCH 3/3] mm: Rename vma_pgoff_address back to vma_address Matthew Wilcox (Oracle)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).