io_uring: make cached_cq_overflow non atomic_t
[linux-2.6-microblaze.git] / mm / swap.c
index f41ccd8..47a4768 100644 (file)
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -889,6 +889,7 @@ void release_pages(struct page **pages, int nr)
                        locked_pgdat = NULL;
                }
 
+               page = compound_head(page);
                if (is_huge_zero_page(page))
                        continue;
 
@@ -910,7 +911,6 @@ void release_pages(struct page **pages, int nr)
                        }
                }
 
-               page = compound_head(page);
                if (!put_page_testzero(page))
                        continue;