diff options
| author | Lorenzo Stoakes <[email protected]> | 2023-05-22 09:24:12 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-06-09 16:25:38 -0700 |
| commit | 3c54a298db4c6b38bbd5f86216ce0f5ad4596ccf (patch) | |
| tree | 5b271d9b7546de6c17915cedc65018d99d8d4ebd /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 89207c669bbf464c81e1561d8206f120a679aaf7 (diff) | |
mm/mmap: refactor mlock_future_check()
In all but one instance, mlock_future_check() is treated as a boolean
function despite returning an error code. In one instance, this error
code is ignored and replaced with -ENOMEM.
This is confusing, and the inversion of true -> failure, false -> success
is not warranted. Convert the function to a bool, lightly refactor and
return true if the check passes, false if not.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Lorenzo Stoakes <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Liam Howlett <[email protected]>
Cc: Mike Rapoport (IBM) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions