]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/linux/mmzone.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next
[mv-sheeva.git] / include / linux / mmzone.h
index c188ea624c7426fb8f602712d9e8bcb2bdc0b1bf..652ef01be5823230e8cf89ea96e14b12acd2076a 100644 (file)
@@ -38,6 +38,7 @@
 #define MIGRATE_UNMOVABLE     0
 #define MIGRATE_RECLAIMABLE   1
 #define MIGRATE_MOVABLE       2
+#define MIGRATE_PCPTYPES      3 /* the number of types on the pcp lists */
 #define MIGRATE_RESERVE       3
 #define MIGRATE_ISOLATE       4 /* can't allocate from here */
 #define MIGRATE_TYPES         5
@@ -169,7 +170,9 @@ struct per_cpu_pages {
        int count;              /* number of pages in the list */
        int high;               /* high watermark, emptying needed */
        int batch;              /* chunk size for buddy add/remove */
-       struct list_head list;  /* the list of pages */
+
+       /* Lists of pages, one per migrate type stored on the pcp-lists */
+       struct list_head lists[MIGRATE_PCPTYPES];
 };
 
 struct per_cpu_pageset {