Re: [PATCH 28 of 66] _GFP_NO_KSWAPD

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Arcangeli
Date: Monday, November 29, 2010 - 12:03 pm

On Thu, Nov 18, 2010 at 01:18:39PM +0000, Mel Gorman wrote:

Agreed.

diff --git a/include/linux/gfp.h b/include/linux/gfp.h
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -34,6 +34,7 @@ struct vm_area_struct;
 #else
 #define ___GFP_NOTRACK		0
 #endif
+#define ___GFP_NO_KSWAPD	0x400000u
 
 /*
  * GFP bitmasks..
@@ -81,7 +82,7 @@ struct vm_area_struct;
 #define __GFP_RECLAIMABLE ((__force gfp_t)___GFP_RECLAIMABLE) /* Page is reclaimable */
 #define __GFP_NOTRACK	((__force gfp_t)___GFP_NOTRACK)  /* Don't track with kmemcheck */
 
-#define __GFP_NO_KSWAPD	((__force gfp_t)0x400000u)
+#define __GFP_NO_KSWAPD	((__force gfp_t)___GFP_NO_KSWAPD)
 
 /*
  * This may seem redundant, but it's a way of annotating false positives vs.



3 underscores.


Added, thanks!
Andrea
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 28 of 66] _GFP_NO_KSWAPD, Andrea Arcangeli, (Wed Nov 3, 8:28 am)
Re: [PATCH 28 of 66] _GFP_NO_KSWAPD, Mel Gorman, (Thu Nov 18, 6:18 am)
Re: [PATCH 28 of 66] _GFP_NO_KSWAPD, Andrea Arcangeli, (Mon Nov 29, 12:03 pm)