diff options
| author | Miaohe Lin <[email protected]> | 2021-05-04 18:34:32 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-05-05 11:27:21 -0700 |
| commit | bf3d12b9f7f9e7c4ae4aa94c6c81400d3bf688e6 (patch) | |
| tree | c3e80f6339fbac79d41271b8022c6b7891280e82 /tools/perf/scripts/python/stackcollapse.py | |
| parent | f84df0b7f1b603f6c99670bdf2f908f0b6a5ed59 (diff) | |
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/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Cc: Feilong Lin <[email protected]>
Cc: Mike Kravetz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions