]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/hugetlb_cgroup.h
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / include / linux / hugetlb_cgroup.h
index 7edd305152983af1ab6aee93f470dd99289046e8..24154c26d469c60984020b5a0441fcb6dde3fcb0 100644 (file)
@@ -32,7 +32,7 @@ static inline struct hugetlb_cgroup *hugetlb_cgroup_from_page(struct page *page)
 
        if (compound_order(page) < HUGETLB_CGROUP_MIN_ORDER)
                return NULL;
-       return (struct hugetlb_cgroup *)page[2].lru.next;
+       return (struct hugetlb_cgroup *)page[2].private;
 }
 
 static inline
@@ -42,7 +42,7 @@ int set_hugetlb_cgroup(struct page *page, struct hugetlb_cgroup *h_cg)
 
        if (compound_order(page) < HUGETLB_CGROUP_MIN_ORDER)
                return -1;
-       page[2].lru.next = (void *)h_cg;
+       page[2].private = (unsigned long)h_cg;
        return 0;
 }