mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] sparsemem base: reorganize page->flags bit operations
Generify the value fields in the page_flags. The aim is to allow the location and size of these fields to be varied. Additionally we want to move away from fixed allocations per field whilst still enforcing the overall bit utilisation limits. We rely on the compiler to spot and optimise the accessor functions. Signed-off-by: Andy Whitcroft <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6f167ec721
commit
348f8b6c48
3 changed files with 52 additions and 22 deletions
|
|
@ -1653,7 +1653,7 @@ void __init memmap_init_zone(unsigned long size, int nid, unsigned long zone,
|
|||
struct page *page;
|
||||
|
||||
for (page = start; page < (start + size); page++) {
|
||||
set_page_zone(page, NODEZONE(nid, zone));
|
||||
set_page_links(page, zone, nid);
|
||||
set_page_count(page, 0);
|
||||
reset_page_mapcount(page);
|
||||
SetPageReserved(page);
|
||||
|
|
|
|||
Loading…
Reference in a new issue