diff options
| author | Miaohe Lin <linmiaohe@huawei.com> | 2021-05-04 18:34:32 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-05-05 11:27:21 -0700 |
| commit | bf3d12b9f7f9e7c4ae4aa94c6c81400d3bf688e6 (patch) | |
| tree | c3e80f6339fbac79d41271b8022c6b7891280e82 /tools/perf/scripts/python | |
| parent | mm/hugeltb: remove redundant VM_BUG_ON() in region_add() (diff) | |
| download | linux-bf3d12b9f7f9e7c4ae4aa94c6c81400d3bf688e6.tar.gz linux-bf3d12b9f7f9e7c4ae4aa94c6c81400d3bf688e6.zip | |
mm/hugeltb: simplify the return code of __vma_reservation_common()
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.
Link: https://lkml.kernel.org/r/20210410072348.20437-3-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Feilong Lin <linfeilong@huawei.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
