mbox series

[0/2] fix several contiguous memmap assumptions

Message ID 20220329130928.266323-1-chenwandun@huawei.com (mailing list archive)
Headers show
Series fix several contiguous memmap assumptions | expand

Message

Chen Wandun March 29, 2022, 1:09 p.m. UTC
It isn't true for only SPARSEMEM configs to assume that a compound page
has virtually contiguous page structs, so use nth_page to iterate each
page.

Inspired by:
https://lore.kernel.org/linux-mm/20220204195852.1751729-8-willy@infradead.org/

Chen Wandun (2):
  mm: fix contiguous memmap assumptions about split page
  mm: fix contiguous memmap assumptions about alloc/free pages

 include/linux/mm.h |  2 ++
 mm/compaction.c    |  6 +++---
 mm/huge_memory.c   |  2 +-
 mm/page_alloc.c    | 14 ++++++++------
 4 files changed, 14 insertions(+), 10 deletions(-)