summaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorHillf Danton2012-03-22 00:34:00 +0100
committerLinus Torvalds2012-03-22 01:54:57 +0100
commit28073b02bfaaed1e3278acfb8e6e7c9f76d9f2b6 (patch)
tree54ab2952e2bee85780438a011cf5c1f198ff3dd9 /mm/rmap.c
parentmm: vmscan: forcibly scan highmem if there are too many buffer_heads pinning ... (diff)
downloadkernel-qcow2-linux-28073b02bfaaed1e3278acfb8e6e7c9f76d9f2b6.tar.gz
kernel-qcow2-linux-28073b02bfaaed1e3278acfb8e6e7c9f76d9f2b6.tar.xz
kernel-qcow2-linux-28073b02bfaaed1e3278acfb8e6e7c9f76d9f2b6.zip
mm: hugetlb: defer freeing pages when gathering surplus pages
When gathering surplus pages, the number of needed pages is recomputed after reacquiring hugetlb lock to catch changes in resv_huge_pages and free_huge_pages. Plus it is recomputed with the number of newly allocated pages involved. Thus freeing pages can be deferred a bit to see if the final page request is satisfied, though pages could be allocated less than needed. Signed-off-by: Hillf Danton <dhillf@gmail.com> Reviewed-by: Michal Hocko <mhocko@suse.cz> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Hugh Dickins <hughd@google.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions