Skip to contentSkip to conversation

mm: fix typo in mm.h when NODE_NOT_IN_PAGE_FLAGS

PATCH New Will Deacon 1 participant 1 message Sep 3, 2010 MM core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: fix typo in mm.h when NODE_NOT_IN_PAGE_FLAGS

NODE_NOT_IN_PAGE_FLAGS is defined in mm.h when the node information is not stored in the page flags bitmap.

Unfortunately, there's a typo in one of the checks for it. This patch fixes it (s/NODE_NOT_IN_PAGEFLAGS/NODE_NOT_IN_PAGE_FLAGS/). Since this has been around for ages, I doubt it's been causing any serious problems.

Patch taken against 2.6.36-rc3.

Cc Christoph Lameter <[email protected]>
Cc Mel Gorman <[email protected]>
---
 include/linux/mm.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/mm.h +2 -2
index e6b1210..87f8c5b 100644
@@ -497,8 +497,8 @@ static inline void set_compound_order(struct page *page, unsigned long order)
 #define NODES_PGSHIFT		(NODES_PGOFF * (NODES_WIDTH != 0))
 #define ZONES_PGSHIFT		(ZONES_PGOFF * (ZONES_WIDTH != 0))
 
-/* NODE:ZONE or SECTION:ZONE is used to ID a zone for the buddy allcator */
-#ifdef NODE_NOT_IN_PAGEFLAGS
+/* NODE:ZONE or SECTION:ZONE is used to ID a zone for the buddy allocator */
+#ifdef NODE_NOT_IN_PAGE_FLAGS
 #define ZONEID_SHIFT		(SECTIONS_SHIFT + ZONES_SHIFT)
 #define ZONEID_PGOFF		((SECTIONS_PGOFF < ZONES_PGOFF)? \
 						SECTIONS_PGOFF : ZONES_PGOFF)
Signature · 1 line
1.6.3.3