diff options
| author | Jason Gunthorpe <[email protected]> | 2023-01-24 16:34:32 -0400 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-09 16:51:45 -0800 |
| commit | 9198a9196ee67814a101c178ed828f8ea9c2965e (patch) | |
| tree | acdf88a4b0afa2e7006d414d778e9e421bb8911d /include/linux | |
| parent | edad1bb1fbf7e28b49bf76b2aa66bfcaba00f627 (diff) | |
mm/gup: make get_user_pages_fast_only() return the common return value
There are only two callers, both can handle the common return code:
- get_user_page_fast_only() checks == 1
- gfn_to_page_many_atomic() already returns -1, and the only caller
checks for negative return values
Remove the restriction against returning negative values.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Jason Gunthorpe <[email protected]>
Acked-by: Mike Rapoport (IBM) <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Alistair Popple <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Claudio Imbrenda <[email protected]>
Cc: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions