aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2023-01-24 16:34:26 -0400
committerAndrew Morton <[email protected]>2023-02-09 16:51:44 -0800
commitd64e2dbc33a109a37ad4f5c18945c324345fe873 (patch)
tree7eb9c0df30e45d1b1ee0083264a90ba31d347f1c /tools/perf/scripts/python
parent7ce154fe6917e7db94d63bc4d6c73b678ad1c581 (diff)
mm/gup: simplify the external interface functions and consolidate invariants
The GUP family of functions have a complex, but fairly well defined, set of invariants for their arguments. Currently these are sprinkled about, sometimes in duplicate through many functions. Internally we don't follow all the invariants that the external interface has to follow, so place these checks directly at the exported interface. This ensures the internal functions never reach a violated invariant. Remove the duplicated invariant checks. The end result is to make these functions fully internal: __get_user_pages_locked() internal_get_user_pages_fast() __gup_longterm_locked() And all the other functions call directly into one of these. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jason Gunthorpe <[email protected]> Suggested-by: John Hubbard <[email protected]> Reviewed-by: John Hubbard <[email protected]> Acked-by: Mike Rapoport (IBM) <[email protected]> Cc: Alistair Popple <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Claudio Imbrenda <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions