[PATCH 0/4] Cleanup and fixup for hugetlb

From: Miaohe Lin
Date: Fri Apr 02 2021 - 05:33:44 EST


Hi all,
This series contains cleanups to remove redundant VM_BUG_ON() and
simplify the return code. Also this fixes potential wrong gbl_reserve
value and handle the error case in hugetlb_fix_reserve_counts(). More
details can be found in the respective changelogs. Thanks!

Miaohe Lin (4):
mm/hugeltb: remove redundant VM_BUG_ON() in region_add()
mm/hugeltb: simplify the return code of __vma_reservation_common()
mm/hugeltb: fix potential wrong gbl_reserve value for
hugetlb_acct_memory()
mm/hugeltb: handle the error case in hugetlb_fix_reserve_counts()

mm/hugetlb.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)

--
2.19.1