mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
[PATCH] Convert mempolicies to nodemask_t
The NUMA policy code predated nodemask_t so it used open coded bitmaps. Convert everything to nodemask_t. Big patch, but shouldn't have any actual behaviour changes (except I removed one unnecessary check against node_online_map and one unnecessary BUG_ON) Signed-off-by: "Andi Kleen" <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
e46a5e28c2
commit
dfcd3c0dc4
3 changed files with 56 additions and 70 deletions
|
@ -27,10 +27,10 @@
|
|||
|
||||
#include <linux/config.h>
|
||||
#include <linux/mmzone.h>
|
||||
#include <linux/bitmap.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/rbtree.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/nodemask.h>
|
||||
|
||||
struct vm_area_struct;
|
||||
|
||||
|
@ -63,7 +63,7 @@ struct mempolicy {
|
|||
union {
|
||||
struct zonelist *zonelist; /* bind */
|
||||
short preferred_node; /* preferred */
|
||||
DECLARE_BITMAP(nodes, MAX_NUMNODES); /* interleave */
|
||||
nodemask_t nodes; /* interleave */
|
||||
/* undefined for default */
|
||||
} v;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue