Skip to content

Commit

Permalink
mm/page_alloc.c: change sysctl_lower_zone_reserve_ratio to sysctl_low…
Browse files Browse the repository at this point in the history
…mem_reserve_ratio in comments

We use sysctl_lowmem_reserve_ratio rather than
sysctl_lower_zone_reserve_ratio to determine how aggressive the kernel
is in defending lowmem from the possibility of being captured into
pinned user memory.  To avoid misleading, correct it in some comments.

Signed-off-by: Yaowei Bai <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
baihuahua authored and torvalds committed Sep 8, 2015
1 parent 013110a commit 34b1006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6075,7 +6075,7 @@ void __init page_alloc_init(void)
}

/*
* calculate_totalreserve_pages - called when sysctl_lower_zone_reserve_ratio
* calculate_totalreserve_pages - called when sysctl_lowmem_reserve_ratio
* or min_free_kbytes changes.
*/
static void calculate_totalreserve_pages(void)
Expand Down Expand Up @@ -6119,7 +6119,7 @@ static void calculate_totalreserve_pages(void)

/*
* setup_per_zone_lowmem_reserve - called whenever
* sysctl_lower_zone_reserve_ratio changes. Ensures that each zone
* sysctl_lowmem_reserve_ratio changes. Ensures that each zone
* has a correct pages reserved value, so an adequate number of
* pages are left in the zone after a successful __alloc_pages().
*/
Expand Down

0 comments on commit 34b1006

Please sign in to comment.