aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2020-03-27 20:00:21 +0000
committerJason Gunthorpe <[email protected]>2020-03-30 19:58:36 +0000
commitbd5d3587b218d33d70a835582dfe1d8f8498e702 (patch)
treedb5411fb8e0b0d82ef248753372d8d42d201fdbc /tools/perf/scripts/python/sctop.py
parentmm/hmm: do not set pfns when returning an error code (diff)
downloadkernel-bd5d3587b218d33d70a835582dfe1d8f8498e702.tar.gz
kernel-bd5d3587b218d33d70a835582dfe1d8f8498e702.zip
mm/hmm: return error for non-vma snapshots
The pagewalker does not call most ops with NULL vma, those are all routed to hmm_vma_walk_hole() via ops->pte_hole instead. Thus hmm_vma_fault() is only called with a NULL vma from hmm_vma_walk_hole(), so hoist the NULL vma check to there. Now it is clear that snapshotting with no vma is a HMM_PFN_ERROR as without a vma we have no path to call hmm_vma_fault(). Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions