diff options
Diffstat (limited to 'mm/page_ext.c')
-rw-r--r-- | mm/page_ext.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/page_ext.c b/mm/page_ext.c index 4f0367d472c4..2c16216c29b6 100644 --- a/mm/page_ext.c +++ b/mm/page_ext.c | |||
@@ -125,7 +125,6 @@ struct page_ext *lookup_page_ext(struct page *page) | |||
125 | struct page_ext *base; | 125 | struct page_ext *base; |
126 | 126 | ||
127 | base = NODE_DATA(page_to_nid(page))->node_page_ext; | 127 | base = NODE_DATA(page_to_nid(page))->node_page_ext; |
128 | #if defined(CONFIG_DEBUG_VM) | ||
129 | /* | 128 | /* |
130 | * The sanity checks the page allocator does upon freeing a | 129 | * The sanity checks the page allocator does upon freeing a |
131 | * page can reach here before the page_ext arrays are | 130 | * page can reach here before the page_ext arrays are |
@@ -134,7 +133,6 @@ struct page_ext *lookup_page_ext(struct page *page) | |||
134 | */ | 133 | */ |
135 | if (unlikely(!base)) | 134 | if (unlikely(!base)) |
136 | return NULL; | 135 | return NULL; |
137 | #endif | ||
138 | index = pfn - round_down(node_start_pfn(page_to_nid(page)), | 136 | index = pfn - round_down(node_start_pfn(page_to_nid(page)), |
139 | MAX_ORDER_NR_PAGES); | 137 | MAX_ORDER_NR_PAGES); |
140 | return get_entry(base, index); | 138 | return get_entry(base, index); |
@@ -199,7 +197,6 @@ struct page_ext *lookup_page_ext(struct page *page) | |||
199 | { | 197 | { |
200 | unsigned long pfn = page_to_pfn(page); | 198 | unsigned long pfn = page_to_pfn(page); |
201 | struct mem_section *section = __pfn_to_section(pfn); | 199 | struct mem_section *section = __pfn_to_section(pfn); |
202 | #if defined(CONFIG_DEBUG_VM) | ||
203 | /* | 200 | /* |
204 | * The sanity checks the page allocator does upon freeing a | 201 | * The sanity checks the page allocator does upon freeing a |
205 | * page can reach here before the page_ext arrays are | 202 | * page can reach here before the page_ext arrays are |
@@ -208,7 +205,6 @@ struct page_ext *lookup_page_ext(struct page *page) | |||
208 | */ | 205 | */ |
209 | if (!section->page_ext) | 206 | if (!section->page_ext) |
210 | return NULL; | 207 | return NULL; |
211 | #endif | ||
212 | return get_entry(section->page_ext, pfn); | 208 | return get_entry(section->page_ext, pfn); |
213 | } | 209 | } |
214 | 210 | ||