summaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorAdam Litke2008-04-28 11:12:20 +0200
committerLinus Torvalds2008-04-28 17:58:19 +0200
commit19fc3f0acde32636529969570055c7e2a744787c (patch)
treeabcd29adbebe027eb2f3f13770e63662c22c7975 /mm/sparse.c
parentmm: try both endianess when checking for endianess (diff)
downloadkernel-qcow2-linux-19fc3f0acde32636529969570055c7e2a744787c.tar.gz
kernel-qcow2-linux-19fc3f0acde32636529969570055c7e2a744787c.tar.xz
kernel-qcow2-linux-19fc3f0acde32636529969570055c7e2a744787c.zip
hugetlb: decrease hugetlb_lock cycling in gather_surplus_huge_pages
To reduce hugetlb_lock acquisitions and releases when freeing excess surplus pages, scan the page list in two parts. First, transfer the needed pages to the hugetlb pool. Then drop the lock and free the remaining pages back to the buddy allocator. In the common case there are zero excess pages and no lock operations are required. Thanks Mel Gorman for this improvement. Signed-off-by: Adam Litke <agl@us.ibm.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Dave Hansen <haveblue@us.ibm.com> Cc: William Lee Irwin III <wli@holomorphy.com> Cc: Andy Whitcroft <apw@shadowen.org> Cc: Mel Gorman <mel@csn.ul.ie> Cc: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions