Revision c1470b33bb6e18cddd361fef339ef225b8339fe7 authored by zhong jiang on 11 August 2016, 22:32:55 UTC, committed by Linus Torvalds on 11 August 2016, 23:58:13 UTC
When memory hotplug operates, free hugepages will be freed if the
movable node is offline.  Therefore, /proc/sys/vm/nr_hugepages will be
incorrect.

Fix it by reducing max_huge_pages when the node is offlined.

n-horiguchi@ah.jp.nec.com said:

: dissolve_free_huge_page intends to break a hugepage into buddy, and the
: destination hugepage is supposed to be allocated from the pool of the
: destination node, so the system-wide pool size is reduced.  So adding
: h->max_huge_pages-- makes sense to me.

Link: http://lkml.kernel.org/r/1470624546-902-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 85e97be
History
File Mode Size
encrypted-keys
Kconfig -rw-r--r-- 3.2 KB
Makefile -rw-r--r-- 522 bytes
big_key.c -rw-r--r-- 8.4 KB
compat.c -rw-r--r-- 3.7 KB
dh.c -rw-r--r-- 3.3 KB
gc.c -rw-r--r-- 9.7 KB
internal.h -rw-r--r-- 9.4 KB
key.c -rw-r--r-- 30.1 KB
keyctl.c -rw-r--r-- 41.3 KB
keyring.c -rw-r--r-- 37.8 KB
permission.c -rw-r--r-- 2.9 KB
persistent.c -rw-r--r-- 4.5 KB
proc.c -rw-r--r-- 8.7 KB
process_keys.c -rw-r--r-- 20.6 KB
request_key.c -rw-r--r-- 19.7 KB
request_key_auth.c -rw-r--r-- 7.0 KB
sysctl.c -rw-r--r-- 1.8 KB
trusted.c -rw-r--r-- 29.4 KB
trusted.h -rw-r--r-- 3.2 KB
user_defined.c -rw-r--r-- 4.6 KB

back to top