]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/internal.h
mm, page_alloc: remove field from alloc_context
[linux.git] / mm / internal.h
index d1ddd71c1bbfa960e030706dd076a57d4bfea2ef..3ac544f1963fd8a5c5886ab02900c5a012c25f19 100644 (file)
@@ -103,12 +103,13 @@ struct alloc_context {
        struct zonelist *zonelist;
        nodemask_t *nodemask;
        struct zoneref *preferred_zoneref;
-       int classzone_idx;
        int migratetype;
        enum zone_type high_zoneidx;
        bool spread_dirty_pages;
 };
 
+#define ac_classzone_idx(ac) zonelist_zone_idx(ac->preferred_zoneref)
+
 /*
  * Locate the struct page for both the matching buddy in our
  * pair (buddy1) and the combined O(n+1) page they form (page).