Re: [PATCH v3 8/9] mm, hugetlb: remove decrement_hugepage_resv_vma()

2013-07-29 Thread Hillf Danton
On Mon, Jul 29, 2013 at 1:28 PM, Joonsoo Kim wrote: > Now, Checking condition of decrement_hugepage_resv_vma() and > vma_has_reserves() is same, so we can clean-up this function with > vma_has_reserves(). Additionally, decrement_hugepage_resv_vma() has only > one call site, so we can remove functi

[PATCH v3 8/9] mm, hugetlb: remove decrement_hugepage_resv_vma()

2013-07-28 Thread Joonsoo Kim
Now, Checking condition of decrement_hugepage_resv_vma() and vma_has_reserves() is same, so we can clean-up this function with vma_has_reserves(). Additionally, decrement_hugepage_resv_vma() has only one call site, so we can remove function and embed it into dequeue_huge_page_vma() directly. This p