mm: balloon: enqueue zero page to balloon device
PATCH 1/1 mm: balloon: enqueue zero page to balloon device
Now, pages in balloon device have random value, and these pages will be scanned by ksmd on host. They usually can not be merged. Enqueue zero page will resolve this problem.
Signed-off-by zhenwei.pi <[email protected]>
--- mm/balloon_compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/balloon_compaction.c +1 -1
@@ -24,7 +24,7 @@ struct page *balloon_page_enqueue(struct balloon_dev_info *b_dev_info) {unsigned long flags;struct page *page =alloc_page (balloon_mapping_gfp_mask () | - __GFP_NOMEMALLOC | __GFP_NORETRY); + __GFP_NOMEMALLOC | __GFP_NORETRY | __GFP_ZERO);if (!page)return NULL ;
Signature · 7 lines
2.7.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>