]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mm fix commmets: if SPARSEMEM, pgdata doesn't have page_ext
authorWeijie Yang <weijie.yang@samsung.com>
Fri, 20 May 2016 23:58:04 +0000 (16:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
If SPARSEMEM, use page_ext in mem_section
if !SPARSEMEM, use page_ext in pgdata

Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mmzone.h

index 8dd0333b01dc254aad75654611dcb9e36f499e22..02069c23486de013baa2d1c8f32c305a24224d7d 100644 (file)
@@ -1063,7 +1063,7 @@ struct mem_section {
        unsigned long *pageblock_flags;
 #ifdef CONFIG_PAGE_EXTENSION
        /*
-        * If !SPARSEMEM, pgdat doesn't have page_ext pointer. We use
+        * If SPARSEMEM, pgdat doesn't have page_ext pointer. We use
         * section. (see page_ext.h about this.)
         */
        struct page_ext *page_ext;