Messages in this thread | | | Subject | Re: [PATCH v2 2/5] mm/hugeltb: simplify the return code of __vma_reservation_common() | From | Mike Kravetz <> | Date | Mon, 12 Apr 2021 11:26:51 -0700 |
| |
On 4/10/21 12:23 AM, Miaohe Lin wrote: > It's guaranteed that the vma is associated with a resv_map, i.e. either > VM_MAYSHARE or HPAGE_RESV_OWNER, when the code reaches here or we would > have returned via !resv check above. So it's unneeded to check whether > HPAGE_RESV_OWNER is set here. Simplify the return code to make it more > clear. > > Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Thanks,
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com> -- Mike Kravetz
| |