summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-21 10:46:08 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-21 10:46:08 -0500
commitcd6a22310ec2a70092e136d0cd65bb77c1502521 (patch)
treec01fa788b27b240c7b426d7f329d92bd58c7b8f5 /mm/hugetlb.c
parent1e12a521d6917004f8b95a3b5864b92edc2694c8 (diff)
parent177c459b08a34dcf004aa9a4c1f1d8be682ff3af (diff)
Merge USB 4.20-rc8 mergepoint into usb-next
We need the USB changes in here for additional patches to be able to apply cleanly. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 705a3e9cc910..a80832487981 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1248,10 +1248,11 @@ void free_huge_page(struct page *page)
1248 (struct hugepage_subpool *)page_private(page); 1248 (struct hugepage_subpool *)page_private(page);
1249 bool restore_reserve; 1249 bool restore_reserve;
1250 1250
1251 set_page_private(page, 0);
1252 page->mapping = NULL;
1253 VM_BUG_ON_PAGE(page_count(page), page); 1251 VM_BUG_ON_PAGE(page_count(page), page);
1254 VM_BUG_ON_PAGE(page_mapcount(page), page); 1252 VM_BUG_ON_PAGE(page_mapcount(page), page);
1253
1254 set_page_private(page, 0);
1255 page->mapping = NULL;
1255 restore_reserve = PagePrivate(page); 1256 restore_reserve = PagePrivate(page);
1256 ClearPagePrivate(page); 1257 ClearPagePrivate(page);
1257 1258