From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-mm@kvack.org
Subject: [PATCH 0/3] Unify vma_address and vma_pgoff_address
Date: Thu, 28 Mar 2024 22:58:26 +0000 [thread overview]
Message-ID: <20240328225831.1765286-1-willy@infradead.org> (raw)
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
next reply other threads:[~2024-03-28 22:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 22:58 Matthew Wilcox (Oracle) [this message]
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)
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=20240328225831.1765286-1-willy@infradead.org \
--to=willy@infradead.org \
--cc=akpm@linux-foundation.org \
--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;
as well as URLs for NNTP newsgroup(s).