RE: [RFC PATCH 12/12] mm: let slab/slub/slob use mirrored memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-	page = alloc_pages_exact_node(nodeid, flags | __GFP_NOTRACK, cachep->gfporder);
+	page = alloc_pages_exact_node(nodeid, flags | __GFP_NOTRACK | __GFP_MIRROR,
+					cachep->gfporder);
 
Set some global "got_mirror"[*] if we have any mirrored memory to __GFP_MIRROR, else to 0.

then
	
	page = alloc_pages_exact_node(nodeid, flags | __GFP_NOTRACK | got_mirror,
					cachep->gfporder);

-Tony

[*] Someone will suggest a better name. I'm bad at picking names.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]