]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hugetlb: move all the in use pages to active list
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 21 Jul 2012 00:54:05 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:26 +0000 (13:02 +1000)
commit8d81adccfc4db768174dcc296fc796ec2ae1e07a
tree3c673943c45acfffbf938071bd839b572c68b4f4
parent03442ade2603b9de34b6f0af9a35b647f7137fcf
hugetlb: move all the in use pages to active list

When we fail to allocate pages from the reserve pool, hugetlb tries to
allocate huge pages using alloc_buddy_huge_page.  Add these to the active
list.  We also need to add the huge page we allocate when we soft offline
the oldpage to active list.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c