]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/sparse.c
mm: add new mmgrab() helper
[karo-tx-linux.git] / mm / sparse.c
index 1e168bf2779a9dbc0638bc115e2877f9b55e2ab7..db6bf3c97ea2cd7e593922ab88840b84d67cdd88 100644 (file)
@@ -662,12 +662,12 @@ static void free_map_bootmem(struct page *memmap)
                >> PAGE_SHIFT;
 
        for (i = 0; i < nr_pages; i++, page++) {
-               magic = (unsigned long) page->lru.next;
+               magic = (unsigned long) page->freelist;
 
                BUG_ON(magic == NODE_INFO);
 
                maps_section_nr = pfn_to_section_nr(page_to_pfn(page));
-               removing_section_nr = page->private;
+               removing_section_nr = page_private(page);
 
                /*
                 * When this function is called, the removing section is