Skip to content

Minor mm/struct page work

Kent Overstreet linux-block linux-mm linux-raid lkml oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm: Make free_area->nr_free per migratetypeinclude/linux/mmzone.h mm/page_alloc.c mm/page_reporting.c +1 more+33 -413 replies
2/5mm: Introduce struct page_free_listinclude/linux/mmzone.h kernel/crash_core.c mm/compaction.c +3 more+48 -420 replies
3/5mm/page_reporting: Improve control flowmm/page_reporting.c+54 -1000 replies
4/5md: Kill usage of page->indexdrivers/md/md-bitmap.c+21 -235 replies
5/5brd: Kill usage of page->indexdrivers/block/brd.c+0 -42 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchMatthew Wilcox (Oracle)David Hildenbrand
1/5
2/5
3/5
4/5
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Minor mm/struct page work

Some small buddy allocator/struct page patches

The first two patches are small buddy allocator cleanups - they were supposed to be prep work patches to replacing buddy allocator freelists with radix trees, but I'm not sure if that's actually going to be feasible due to highmem - but the patches are still improvements so I wanted to send them out.

The third, to mm/page_reporting, also came about because that code walks buddy allocator freelists but is a much more significant cleanup. I have no idea how to test page reporting though so it's only Correct By Obviousness, so hopefully Alexander can help us out with that.

The last two patches are important for the struct page cleanups currently underway. We have a lot of code using page->index and page->mapping in ad-hoc ways, and this is a real problem given our goal of cutting struct page up into different types that each have a well defined purpose - and it turns out that a lot of that code is using those fields for very minor conveniences. We still need a lot more cleanups like this, I've only done two of the easier ones.

Kent Overstreet (5):
mm: Make free_area->nr_free per migratetype
mm: Introduce struct page_free_list
mm/page_reporting: Improve control flow
md: Kill usage of page->index
brd: Kill usage of page->index

 drivers/block/brd.c    |   4 --
 drivers/md/md-bitmap.c |  44 ++++++------
 include/linux/mmzone.h |  22 ++++--
 kernel/crash_core.c    |   4 +-
 mm/compaction.c        |  20 +++---
 mm/page_alloc.c        |  50 +++++++------
 mm/page_reporting.c    | 158 +++++++++++++++--------------------------
 mm/vmstat.c            |  28 +-------
 8 files changed, 138 insertions(+), 192 deletions(-)
Signature · 1 line
2.33.0