/* How many pages shrink_list() should reclaim */
        unsigned long nr_to_reclaim;
 
-       /* This context's GFP mask */
-       gfp_t gfp_mask;
-
-       /* Allocation order */
-       int order;
-
        /*
         * Nodemask of nodes allowed by the caller. If NULL, all nodes
         * are scanned.
         */
        struct mem_cgroup *target_mem_cgroup;
 
-       /* Scan (total_size >> priority) pages at once */
-       int priority;
-
-       /* The highest zone to isolate pages for reclaim from */
-       enum zone_type reclaim_idx;
-
        /* Writepage batching in laptop mode; RECLAIM_WRITE */
        unsigned int may_writepage:1;
 
        /* One of the zones is ready for compaction */
        unsigned int compaction_ready:1;
 
+       /* Allocation order */
+       s8 order;
+
+       /* Scan (total_size >> priority) pages at once */
+       s8 priority;
+
+       /* The highest zone to isolate pages for reclaim from */
+       s8 reclaim_idx;
+
+       /* This context's GFP mask */
+       gfp_t gfp_mask;
+
        /* Incremented by the number of inactive pages that were scanned */
        unsigned long nr_scanned;
 
                .may_swap = 1,
        };
 
+       /*
+        * scan_control uses s8 fields for order, priority, and reclaim_idx.
+        * Confirm they are large enough for max values.
+        */
+       BUILD_BUG_ON(MAX_ORDER > S8_MAX);
+       BUILD_BUG_ON(DEF_PRIORITY > S8_MAX);
+       BUILD_BUG_ON(MAX_NR_ZONES > S8_MAX);
+
        /*
         * Do not enter reclaim if fatal signal was delivered while throttled.
         * 1 is returned so that the page allocator does not OOM kill at this