|
@@ -107,7 +107,7 @@ struct vm_area_struct;
|
|
* can be cleared when the reclaiming of pages would cause unnecessary
|
|
* can be cleared when the reclaiming of pages would cause unnecessary
|
|
* disruption.
|
|
* disruption.
|
|
*/
|
|
*/
|
|
-#define __GFP_WAIT ((__force gfp_t)(___GFP_DIRECT_RECLAIM|___GFP_KSWAPD_RECLAIM))
|
|
|
|
|
|
+#define __GFP_RECLAIM ((__force gfp_t)(___GFP_DIRECT_RECLAIM|___GFP_KSWAPD_RECLAIM))
|
|
#define __GFP_DIRECT_RECLAIM ((__force gfp_t)___GFP_DIRECT_RECLAIM) /* Caller can reclaim */
|
|
#define __GFP_DIRECT_RECLAIM ((__force gfp_t)___GFP_DIRECT_RECLAIM) /* Caller can reclaim */
|
|
#define __GFP_KSWAPD_RECLAIM ((__force gfp_t)___GFP_KSWAPD_RECLAIM) /* kswapd can wake */
|
|
#define __GFP_KSWAPD_RECLAIM ((__force gfp_t)___GFP_KSWAPD_RECLAIM) /* kswapd can wake */
|
|
|
|
|
|
@@ -126,12 +126,12 @@ struct vm_area_struct;
|
|
*/
|
|
*/
|
|
#define GFP_ATOMIC (__GFP_HIGH|__GFP_ATOMIC|__GFP_KSWAPD_RECLAIM)
|
|
#define GFP_ATOMIC (__GFP_HIGH|__GFP_ATOMIC|__GFP_KSWAPD_RECLAIM)
|
|
#define GFP_NOWAIT (__GFP_KSWAPD_RECLAIM)
|
|
#define GFP_NOWAIT (__GFP_KSWAPD_RECLAIM)
|
|
-#define GFP_NOIO (__GFP_WAIT)
|
|
|
|
-#define GFP_NOFS (__GFP_WAIT | __GFP_IO)
|
|
|
|
-#define GFP_KERNEL (__GFP_WAIT | __GFP_IO | __GFP_FS)
|
|
|
|
-#define GFP_TEMPORARY (__GFP_WAIT | __GFP_IO | __GFP_FS | \
|
|
|
|
|
|
+#define GFP_NOIO (__GFP_RECLAIM)
|
|
|
|
+#define GFP_NOFS (__GFP_RECLAIM | __GFP_IO)
|
|
|
|
+#define GFP_KERNEL (__GFP_RECLAIM | __GFP_IO | __GFP_FS)
|
|
|
|
+#define GFP_TEMPORARY (__GFP_RECLAIM | __GFP_IO | __GFP_FS | \
|
|
__GFP_RECLAIMABLE)
|
|
__GFP_RECLAIMABLE)
|
|
-#define GFP_USER (__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL)
|
|
|
|
|
|
+#define GFP_USER (__GFP_RECLAIM | __GFP_IO | __GFP_FS | __GFP_HARDWALL)
|
|
#define GFP_HIGHUSER (GFP_USER | __GFP_HIGHMEM)
|
|
#define GFP_HIGHUSER (GFP_USER | __GFP_HIGHMEM)
|
|
#define GFP_HIGHUSER_MOVABLE (GFP_HIGHUSER | __GFP_MOVABLE)
|
|
#define GFP_HIGHUSER_MOVABLE (GFP_HIGHUSER | __GFP_MOVABLE)
|
|
#define GFP_TRANSHUGE ((GFP_HIGHUSER_MOVABLE | __GFP_COMP | \
|
|
#define GFP_TRANSHUGE ((GFP_HIGHUSER_MOVABLE | __GFP_COMP | \
|
|
@@ -143,12 +143,12 @@ struct vm_area_struct;
|
|
#define GFP_MOVABLE_SHIFT 3
|
|
#define GFP_MOVABLE_SHIFT 3
|
|
|
|
|
|
/* Control page allocator reclaim behavior */
|
|
/* Control page allocator reclaim behavior */
|
|
-#define GFP_RECLAIM_MASK (__GFP_WAIT|__GFP_HIGH|__GFP_IO|__GFP_FS|\
|
|
|
|
|
|
+#define GFP_RECLAIM_MASK (__GFP_RECLAIM|__GFP_HIGH|__GFP_IO|__GFP_FS|\
|
|
__GFP_NOWARN|__GFP_REPEAT|__GFP_NOFAIL|\
|
|
__GFP_NOWARN|__GFP_REPEAT|__GFP_NOFAIL|\
|
|
__GFP_NORETRY|__GFP_MEMALLOC|__GFP_NOMEMALLOC)
|
|
__GFP_NORETRY|__GFP_MEMALLOC|__GFP_NOMEMALLOC)
|
|
|
|
|
|
/* Control slab gfp mask during early boot */
|
|
/* Control slab gfp mask during early boot */
|
|
-#define GFP_BOOT_MASK (__GFP_BITS_MASK & ~(__GFP_WAIT|__GFP_IO|__GFP_FS))
|
|
|
|
|
|
+#define GFP_BOOT_MASK (__GFP_BITS_MASK & ~(__GFP_RECLAIM|__GFP_IO|__GFP_FS))
|
|
|
|
|
|
/* Control allocation constraints */
|
|
/* Control allocation constraints */
|
|
#define GFP_CONSTRAINT_MASK (__GFP_HARDWALL|__GFP_THISNODE)
|
|
#define GFP_CONSTRAINT_MASK (__GFP_HARDWALL|__GFP_THISNODE)
|