aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2022-06-08 15:18:34 -0400
committerMatthew Wilcox (Oracle) <[email protected]>2022-06-09 16:24:25 -0400
commit69a37a8ba1b408a1c7616494aa7018e4b3844cbe (patch)
tree5b201858763ce5ab35ef56217b735902c53804f2 /tools/perf/scripts/python/task-analyzer.py
parentdcfa24ba68991ab69a48254a18377b45180ae664 (diff)
mm/huge_memory: Fix xarray node memory leak
If xas_split_alloc() fails to allocate the necessary nodes to complete the xarray entry split, it sets the xa_state to -ENOMEM, which xas_nomem() then interprets as "Please allocate more memory", not as "Please free any unnecessary memory" (which was the intended outcome). It's confusing to use xas_nomem() to free memory in this context, so call xas_destroy() instead. Reported-by: [email protected] Fixes: 6b24ca4a1a8d ("mm: Use multi-index entries in the page cache") Cc: [email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions