mm: introduce node_zonelist() for accessing the zonelist for a GFP mask
[linux-2.6.git] / mm / slub.c
index 39592b5..19ebbfb 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1309,8 +1309,7 @@ static struct page *get_any_partial(struct kmem_cache *s, gfp_t flags)
                        get_cycles() % 1024 > s->remote_node_defrag_ratio)
                return NULL;
 
-       zonelist = &NODE_DATA(
-               slab_node(current->mempolicy))->node_zonelists[gfp_zone(flags)];
+       zonelist = node_zonelist(slab_node(current->mempolicy), flags);
        for (z = zonelist->zones; *z; z++) {
                struct kmem_cache_node *n;