Skip to content

Commit

Permalink
mm-thp-avoid-unnecessary-swapin-in-khugepaged-fix
Browse files Browse the repository at this point in the history
tweak comment text

Cc: Andrea Arcangeli <[email protected]>
Cc: Aneesh Kumar K.V <[email protected]>
Cc: Boaz Harrosh <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Ebru Akagunduz <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
akpm00 authored and sfrothwell committed May 28, 2016
1 parent 097a478 commit 0abb0c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -2486,8 +2486,8 @@ static void collapse_huge_page(struct mm_struct *mm,
swap = get_mm_counter(mm, MM_SWAPENTS);
curr_allocstall = sum_vm_event(ALLOCSTALL);
/*
* When system under pressure, don't swapin readahead.
* So that avoid unnecessary resource consuming.
* Don't perform swapin readahead when the system is under pressure,
* to avoid unnecessary resource consumption.
*/
if (allocstall == curr_allocstall && swap != 0)
__collapse_huge_page_swapin(mm, vma, address, pmd);
Expand Down

0 comments on commit 0abb0c2

Please sign in to comment.