aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2007-10-16 04:25:53 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:00 -0400
commite010487dbe09d63cf916fd1b119d17abd0f48207 (patch)
tree37c7f36913daf4bc0a68a1d0ba1cc30ee0d4e307 /include/linux/mmzone.h
parente12ba74d8ff3e2f73a583500d7095e406df4d093 (diff)
Group high-order atomic allocations
In rare cases, the kernel needs to allocate a high-order block of pages without sleeping. For example, this is the case with e1000 cards configured to use jumbo frames. Migrating or reclaiming pages in this situation is not an option. This patch groups these allocations together as much as possible by adding a new MIGRATE_TYPE. The MIGRATE_HIGHATOMIC type are exactly what they sound like. Care is taken that pages of other migrate types do not use the same blocks as high-order atomic allocations. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 4721e9aa3ced..a8140a9a65e8 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -37,11 +37,13 @@
37#define MIGRATE_UNMOVABLE 0 37#define MIGRATE_UNMOVABLE 0
38#define MIGRATE_RECLAIMABLE 1 38#define MIGRATE_RECLAIMABLE 1
39#define MIGRATE_MOVABLE 2 39#define MIGRATE_MOVABLE 2
40#define MIGRATE_TYPES 3 40#define MIGRATE_HIGHATOMIC 3
41#define MIGRATE_TYPES 4
41#else 42#else
42#define MIGRATE_UNMOVABLE 0 43#define MIGRATE_UNMOVABLE 0
43#define MIGRATE_UNRECLAIMABLE 0 44#define MIGRATE_UNRECLAIMABLE 0
44#define MIGRATE_MOVABLE 0 45#define MIGRATE_MOVABLE 0
46#define MIGRATE_HIGHATOMIC 0
45#define MIGRATE_TYPES 1 47#define MIGRATE_TYPES 1
46#endif 48#endif
47 49