aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeter Xu <[email protected]>2023-02-22 14:52:47 -0500
committerAndrew Morton <[email protected]>2023-03-28 16:20:06 -0700
commit94c02ad7ff12b988bd7ccf522f23e0b1f68659e0 (patch)
treeb4100bc238e48904e2da7fd4cc2dabcd8724d69b /tools/perf/scripts/python
parent12318566c5507a5ff4507d5bc5fe45895ffb0e05 (diff)
mm/khugepaged: alloc_charge_hpage() take care of mem charge errors
If memory charge failed, instead of returning the hpage but with an error, allow the function to cleanup the folio properly, which is normally what a function should do in this case - either return successfully, or return with no side effect of partial runs with an indicated error. This will also avoid the caller calling mem_cgroup_uncharge() unnecessarily with either anon or shmem path (even if it's safe to do so). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Reviewed-by: David Stevens <[email protected]> Acked-by: Johannes Weiner <[email protected]> Reviewed-by: Yang Shi <[email protected]> Reviewed-by: Zach O'Keefe <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions