aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2022-08-16 21:05:50 +0800
committerAndrew Morton <[email protected]>2022-09-11 20:25:55 -0700
commit3a5497a2dae381cb1b201fb20847fb32a059da25 (patch)
tree982fec911000769c7cfc8cc7c8aa3c4f7a6143a3 /tools/perf/scripts/python
parent3a6bdda0b58bab883da8dc3a0503e2a13b9d7456 (diff)
mm/hugetlb: fix missing call to restore_reserve_on_error()
When huge_add_to_page_cache() fails, the page is freed directly without calling restore_reserve_on_error() to restore reserve for newly allocated pages not in page cache. Fix this by calling restore_reserve_on_error() when huge_add_to_page_cache fails. [[email protected]: remove err == -EEXIST check and retry logic] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Reviewed-by: Mike Kravetz <[email protected]> Cc: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions