]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm: convert page_to_section() to memdesc_section()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 5 Aug 2025 17:22:52 +0000 (18:22 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:07 +0000 (16:55 -0700)
commit56d578c1300f7efe9605b75714173dd3fda16fe2
tree586f384aac18bb0a59fa7e7072c1d9bd24726150
parent53fbef56e07df822ea3029109ffca25328c2e5ac
mm: convert page_to_section() to memdesc_section()

Pass in the memdesc_flags_t instead of a pointer to the page.  This will
allow us to remove a few conversions to struct page in upcoming patches.

Link: https://lkml.kernel.org/r/20250805172307.1302730-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/asm-generic/memory_model.h
include/linux/mm.h
mm/sparse.c