mbox series

[0/4] Use folio APIs in procfs

Message ID 20240403171456.1445117-1-willy@infradead.org (mailing list archive)
Headers show
Series Use folio APIs in procfs | expand

Message

Matthew Wilcox April 3, 2024, 5:14 p.m. UTC
Not sure whether Andrew or Christian will want to take this set of
fixes.  We're down to very few users of the PageFoo macros, with proc
being a major user.  After this patchset and another patchset I have
for khugepaged, we can get rid of PageActive, PageReadahead and
PageSwapBacked.

This patchset has the usual advantages in its own right of removing
hidden calls to compound_head().  We have the page table lock, so
the mapcount & refcount are stable and there can't be any races with
folios suddenly becoming tail pages.

Matthew Wilcox (Oracle) (4):
  proc: Convert gather_stats to use a folio
  proc: Convert smaps_page_accumulate to use a folio
  proc: Pass a folio to smaps_page_accumulate()
  proc: Convert smaps_pmd_entry to use a folio

 fs/proc/task_mmu.c | 37 ++++++++++++++++++++-----------------
 1 file changed, 20 insertions(+), 17 deletions(-)

Comments

Andrew Morton April 3, 2024, 7:16 p.m. UTC | #1
On Wed,  3 Apr 2024 18:14:51 +0100 "Matthew Wilcox (Oracle)" <willy@infradead.org> wrote:

> Not sure whether Andrew or Christian will want to take this set of
> fixes.

This set has dependencies upon your series "Remove page_idle and
page_young wrappers" and I normally do procfs, so I'll grab.
Christian Brauner April 5, 2024, 11:02 a.m. UTC | #2
On Wed, Apr 03, 2024 at 12:16:50PM -0700, Andrew Morton wrote:
> On Wed,  3 Apr 2024 18:14:51 +0100 "Matthew Wilcox (Oracle)" <willy@infradead.org> wrote:
> 
> > Not sure whether Andrew or Christian will want to take this set of
> > fixes.
> 
> This set has dependencies upon your series "Remove page_idle and

Fine by me in this case.