mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
mm, mem-hotplug: recalculate lowmem_reserve when memory hotplug occurs
Currently, memory hotplug calls setup_per_zone_wmarks() and calculate_zone_inactive_ratio(), but doesn't call setup_per_zone_lowmem_reserve(). It means the number of reserved pages aren't updated even if memory hot plug occur. This patch fixes it. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
839a4fcc8a
commit
1b79acc911
3 changed files with 8 additions and 7 deletions
|
@ -5094,7 +5094,7 @@ void setup_per_zone_wmarks(void)
|
|||
* 1TB 101 10GB
|
||||
* 10TB 320 32GB
|
||||
*/
|
||||
void __meminit calculate_zone_inactive_ratio(struct zone *zone)
|
||||
static void __meminit calculate_zone_inactive_ratio(struct zone *zone)
|
||||
{
|
||||
unsigned int gb, ratio;
|
||||
|
||||
|
@ -5140,7 +5140,7 @@ static void __meminit setup_per_zone_inactive_ratio(void)
|
|||
* 8192MB: 11584k
|
||||
* 16384MB: 16384k
|
||||
*/
|
||||
static int __init init_per_zone_wmark_min(void)
|
||||
int __meminit init_per_zone_wmark_min(void)
|
||||
{
|
||||
unsigned long lowmem_kbytes;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue