]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm: introduce memdesc_is_zone_device()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 5 Aug 2025 17:22:57 +0000 (18:22 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:08 +0000 (16:55 -0700)
commit89ef6ad6fa849b780b5a5caae9068261603e1738
treeba997137205f5b1d27770d9db898ae0598602048
parent11afccce2ac5fd1ea5e6f0d251e746df782c8cfe
mm: introduce memdesc_is_zone_device()

Remove the conversion from folio to page in folio_is_zone_device() by
introducing memdesc_is_zone_device() which takes a memdesc_flags_t from
either a page or a folio.

Link: https://lkml.kernel.org/r/20250805172307.1302730-8-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/linux/mmzone.h