diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index a8140a9a65e8..9a5d5590bd39 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -748,7 +748,7 @@ extern struct zone *next_zone(struct zone *zone); | |||
748 | #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1)) | 748 | #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1)) |
749 | 749 | ||
750 | #define SECTION_BLOCKFLAGS_BITS \ | 750 | #define SECTION_BLOCKFLAGS_BITS \ |
751 | ((SECTION_SIZE_BITS - (MAX_ORDER-1)) * NR_PAGEBLOCK_BITS) | 751 | ((1 << (PFN_SECTION_SHIFT - (MAX_ORDER-1))) * NR_PAGEBLOCK_BITS) |
752 | 752 | ||
753 | #if (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS | 753 | #if (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS |
754 | #error Allocator MAX_ORDER exceeds SECTION_SIZE | 754 | #error Allocator MAX_ORDER exceeds SECTION_SIZE |
@@ -769,7 +769,9 @@ struct mem_section { | |||
769 | * before using it wrong. | 769 | * before using it wrong. |
770 | */ | 770 | */ |
771 | unsigned long section_mem_map; | 771 | unsigned long section_mem_map; |
772 | DECLARE_BITMAP(pageblock_flags, SECTION_BLOCKFLAGS_BITS); | 772 | |
773 | /* See declaration of similar field in struct zone */ | ||
774 | unsigned long *pageblock_flags; | ||
773 | }; | 775 | }; |
774 | 776 | ||
775 | #ifdef CONFIG_SPARSEMEM_EXTREME | 777 | #ifdef CONFIG_SPARSEMEM_EXTREME |