diff --git a/mm/swapfile.c b/mm/swapfile.c
index eb782fcd562705a17f8f86cbd55ef7db840a6315..b0915f3fab315f06fb9aa90b89c93347cc2459c3 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -2313,7 +2313,7 @@ static int unuse_mm(struct mm_struct *mm, unsigned int type)
 
 	mmap_read_lock(mm);
 	for_each_vma(vmi, vma) {
-		if (vma->anon_vma) {
+		if (vma->anon_vma && !is_vm_hugetlb_page(vma)) {
 			ret = unuse_vma(vma, type);
 			if (ret)
 				break;