Re: [PATCH 1/3] mm: Minor clean-up of page flags in mm/page_alloc.c v4

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russ Anderson
Date: Wednesday, May 14, 2008 - 2:30 pm

On Wed, May 14, 2008 at 01:28:53PM -0700, Linus Torvalds wrote:

Yes, will do.  The reason for the cleanup is the following patch
defines PG_memerror, but only on configs with extended page flags.
So checking them in page_alloc.c would require adding #ifdef, which
would be rather ugly.  Moving the definitions into page-flags.h
allows the #ifdef to be in the header file rather than the C code.

From page.discard.v4:
+#ifdef CONFIG_PAGEFLAGS_EXTENDED
+PAGEFLAG(MemError, memerror)
+#define        PAGE_FLAGS      (PAGE_FLAGS_BASE | 1UL << PG_memerror)
+#else
+PAGEFLAG_FALSE(MemError)
+#define        PAGE_FLAGS      (PAGE_FLAGS_BASE)
+#endif

 

I'll make those changes.

-- 
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          rja@sgi.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] mm: Minor clean-up of page flags in mm/pag ..., Russ Anderson, (Wed May 14, 2:30 pm)