aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/swap.c')
-rw-r--r--mm/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swap.c b/mm/swap.c
index 2ed7be39795e..218c52a24a21 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -55,7 +55,7 @@ static void fastcall __page_cache_release(struct page *page)
55 55
56static void put_compound_page(struct page *page) 56static void put_compound_page(struct page *page)
57{ 57{
58 page = (struct page *)page_private(page); 58 page = compound_head(page);
59 if (put_page_testzero(page)) { 59 if (put_page_testzero(page)) {
60 compound_page_dtor *dtor; 60 compound_page_dtor *dtor;
61 61