From: Xiao Guangrong Date: Mon, 8 Oct 2012 23:29:48 +0000 (-0700) Subject: thp: merge page pre-alloc in khugepaged_loop into khugepaged_do_scan X-Git-Tag: v3.7-rc1~74^2~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d516904bd239fe2c9f1bd46cf146bb4b8831321c;p=pandora-kernel.git thp: merge page pre-alloc in khugepaged_loop into khugepaged_do_scan There are two pre-alloc operations in these two function, the different is: - it allows to sleep if page alloc fail in khugepaged_loop - it exits immediately if page alloc fail in khugepaged_do_scan Actually, in khugepaged_do_scan, we can allow the pre-alloc to sleep on the first failure, then the operation in khugepaged_loop can be removed Signed-off-by: Xiao Guangrong Cc: Andrea Arcangeli Cc: Hugh Dickins Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed