diff options
| author | Aristeu Rozanski <aris@ruivo.org> | 2026-08-27 21:55:44 -0400 |
|---|---|---|
| committer | David Hildenbrand (Arm) <david@kernel.org> | 2026-09-16 11:50:05 +0000 |
| commit | 49f7113dec7d68a7cd7f99f4ae318521950cf0b9 (patch) | |
| tree | 3cad836e0f17acb9ed6b23cac029b3f9742f2af6 /tools/lib/python | |
| parent | 9ad472cfb1cbf97fd7f3ea859b54dafd0948602c (diff) | |
| download | linux-next-49f7113dec7d68a7cd7f99f4ae318521950cf0b9.tar.gz linux-next-49f7113dec7d68a7cd7f99f4ae318521950cf0b9.zip | |
mm: gup: cleanup the gup_fast_*() call chain
Refactor gup_fast functions so each step of the way returns the number of
pages pinned. Because the previous step of the chain knows what the number
it should be, less indicates an error. This way there's no need to pass *nr
along.
Suggested-by: David Hildenbrand <david@kernel.org>
Link: https://lore.kernel.org/all/85e760cf-b994-40db-8d13-221feee55c60@redhat.com/T/#u
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David Hildenbrand <david@kernel.org>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Aristeu Rozanski <aris@ruivo.org>
Link: https://patch.msgid.link/20260828015542.334186653@ruivo.org
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
