aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/hugetlb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 8c20aed62b9c..41341c414194 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1552,8 +1552,10 @@ static void hugetlb_vm_op_close(struct vm_area_struct *vma)
1552 1552
1553 kref_put(&reservations->refs, resv_map_release); 1553 kref_put(&reservations->refs, resv_map_release);
1554 1554
1555 if (reserve) 1555 if (reserve) {
1556 hugetlb_acct_memory(h, -reserve); 1556 hugetlb_acct_memory(h, -reserve);
1557 hugetlb_put_quota(vma->vm_file->f_mapping, reserve);
1558 }
1557 } 1559 }
1558} 1560}
1559 1561