diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 094455bcbbf7..ac5f044bf514 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -310,6 +310,9 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start, | |||
310 | BUG_ON(start & ~HPAGE_MASK); | 310 | BUG_ON(start & ~HPAGE_MASK); |
311 | BUG_ON(end & ~HPAGE_MASK); | 311 | BUG_ON(end & ~HPAGE_MASK); |
312 | 312 | ||
313 | /* Update high watermark before we lower rss */ | ||
314 | update_hiwater_rss(mm); | ||
315 | |||
313 | for (address = start; address < end; address += HPAGE_SIZE) { | 316 | for (address = start; address < end; address += HPAGE_SIZE) { |
314 | ptep = huge_pte_offset(mm, address); | 317 | ptep = huge_pte_offset(mm, address); |
315 | if (! ptep) | 318 | if (! ptep) |