Christoph Lameter 1480a540c9 [PATCH] SwapMig: add_to_swap() avoid atomic allocations
Add gfp_mask to add_to_swap

add_to_swap does allocations with GFP_ATOMIC in order not to interfere with
swapping.  During migration we may have use add_to_swap extensively which may
lead to out of memory errors.

This patch makes add_to_swap take a parameter that specifies the gfp mask.
The page migration code can then make add_to_swap use GFP_KERNEL.

Signed-off-by: Hirokazu Takahashi <taka@valinux.co.jp>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-08 20:12:42 -08:00
..
2005-06-24 00:06:41 -07:00
2005-10-28 08:16:51 -07:00
2006-01-06 08:33:27 -08:00
2005-10-28 08:16:47 -07:00
2005-04-16 15:20:36 -07:00
2005-11-28 14:34:23 -08:00
2006-01-08 20:12:40 -08:00
2005-10-29 21:40:42 -07:00
2005-04-16 15:20:36 -07:00
2006-01-06 08:33:29 -08:00
2006-01-08 20:12:39 -08:00
2006-01-08 20:12:40 -08:00