summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2012-10-08 16:29:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 16:22:26 +0900
commitd516904bd239fe2c9f1bd46cf146bb4b8831321c (patch)
treede3ec1af9c309dba0faf2e662ba49f651a566e82 /kernel
parent9817626e722a5e5699cf38f5d3a4c9851e054436 (diff)
downloadlwn-d516904bd239fe2c9f1bd46cf146bb4b8831321c.tar.gz
lwn-d516904bd239fe2c9f1bd46cf146bb4b8831321c.zip
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 <xiaoguangrong@linux.vnet.ibm.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions