diff options
author | David Howells <[email protected]> | 2023-05-22 14:49:51 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-05-24 08:42:15 -0600 |
commit | e69f37bce1b412161e11715adde30dadba0268a2 (patch) | |
tree | 6266fb21a03f030a7cef26fe5da9d84c0f6c0e11 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 69df79a4511117f377d6a5909b47bd4fb541b978 (diff) |
splice: Clean up copy_splice_read() a bit
Do a couple of cleanups to copy_splice_read():
(1) Cast to struct page **, not void *.
(2) Simplify the calculation of the number of pages to keep/reclaim in
copy_splice_read().
Suggested-by: Christoph Hellwig <[email protected]>
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
cc: Jens Axboe <[email protected]>
cc: Al Viro <[email protected]>
cc: David Hildenbrand <[email protected]>
cc: John Hubbard <[email protected]>
cc: [email protected]
cc: [email protected]
cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions