diff options
Diffstat (limited to 'include/linux/mempolicy.h')
| -rw-r--r-- | include/linux/mempolicy.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 58385ee1c0ac..7af8cb836e78 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
| @@ -27,10 +27,10 @@ | |||
| 27 | 27 | ||
| 28 | #include <linux/config.h> | 28 | #include <linux/config.h> |
| 29 | #include <linux/mmzone.h> | 29 | #include <linux/mmzone.h> |
| 30 | #include <linux/bitmap.h> | ||
| 31 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
| 32 | #include <linux/rbtree.h> | 31 | #include <linux/rbtree.h> |
| 33 | #include <linux/spinlock.h> | 32 | #include <linux/spinlock.h> |
| 33 | #include <linux/nodemask.h> | ||
| 34 | 34 | ||
| 35 | struct vm_area_struct; | 35 | struct vm_area_struct; |
| 36 | 36 | ||
| @@ -47,8 +47,7 @@ struct vm_area_struct; | |||
| 47 | * Locking policy for interlave: | 47 | * Locking policy for interlave: |
| 48 | * In process context there is no locking because only the process accesses | 48 | * In process context there is no locking because only the process accesses |
| 49 | * its own state. All vma manipulation is somewhat protected by a down_read on | 49 | * its own state. All vma manipulation is somewhat protected by a down_read on |
| 50 | * mmap_sem. For allocating in the interleave policy the page_table_lock | 50 | * mmap_sem. |
| 51 | * must be also aquired to protect il_next. | ||
| 52 | * | 51 | * |
| 53 | * Freeing policy: | 52 | * Freeing policy: |
| 54 | * When policy is MPOL_BIND v.zonelist is kmalloc'ed and must be kfree'd. | 53 | * When policy is MPOL_BIND v.zonelist is kmalloc'ed and must be kfree'd. |
| @@ -63,7 +62,7 @@ struct mempolicy { | |||
| 63 | union { | 62 | union { |
| 64 | struct zonelist *zonelist; /* bind */ | 63 | struct zonelist *zonelist; /* bind */ |
| 65 | short preferred_node; /* preferred */ | 64 | short preferred_node; /* preferred */ |
| 66 | DECLARE_BITMAP(nodes, MAX_NUMNODES); /* interleave */ | 65 | nodemask_t nodes; /* interleave */ |
| 67 | /* undefined for default */ | 66 | /* undefined for default */ |
| 68 | } v; | 67 | } v; |
| 69 | }; | 68 | }; |
