Commit b6c0ec6e authored by Liu Shixin's avatar Liu Shixin
Browse files

mm/mem_reliable: Treat page from dhugetlb pool as unreliable page

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9CDZZ



--------------------------------

Memory from dhugetlb pool is lacking reliable attributes.
Treat them as unreliable pages.

Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent ba298ec9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -51,6 +51,9 @@ static inline bool page_reliable(struct page *page)
	if (!page)
		return false;

	if (PagePool(page))
		return false;

	return page_zonenum(page) < ZONE_MOVABLE;
}