return 1 + (prandom_u32_state(rnd) % 1024);
 }
 
+static unsigned int random_page_size_pages(unsigned long n,
+                                          unsigned long count,
+                                          struct rnd_state *rnd)
+{
+       /* 4K, 64K, 2M */
+       static unsigned int page_count[] = {
+               BIT(12) >> PAGE_SHIFT,
+               BIT(16) >> PAGE_SHIFT,
+               BIT(21) >> PAGE_SHIFT,
+       };
+
+       return page_count[(prandom_u32_state(rnd) % 3)];
+}
+
 static inline bool page_contiguous(struct page *first,
                                   struct page *last,
                                   unsigned long npages)
        grow,
        shrink,
        random,
+       random_page_size_pages,
        NULL,
 };