From: Christoph Lameter Date: Sun, 8 Jan 2006 09:00:53 +0000 (-0800) Subject: [PATCH] SwapMig: add_to_swap() avoid atomic allocations X-Git-Tag: v2.6.16-rc1~888 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1480a540c98525640174a7eadd712378fcd6fd63;p=pandora-kernel.git [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 Signed-off-by: Dave Hansen Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed