From: Aneesh Kumar K.V Date: Tue, 31 Jul 2012 23:42:35 +0000 (-0700) Subject: hugetlb/cgroup: assign the page hugetlb cgroup when we move the page to active list. X-Git-Tag: v3.6-rc1~24^2~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94ae8ba7176666d1e7d8bbb9f93670a27540b6a8;p=pandora-kernel.git hugetlb/cgroup: assign the page hugetlb cgroup when we move the page to active list. A page's hugetlb cgroup assignment and movement to the active list should occur with hugetlb_lock held. Otherwise when we remove the hugetlb cgroup we will iterate the active list and find pages with NULL hugetlb cgroup values. Signed-off-by: Aneesh Kumar K.V Reviewed-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed