aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2023-05-22 14:50:03 +0100
committerJens Axboe <[email protected]>2023-05-24 08:42:16 -0600
commitccfdf7cbb5fe332f8d17b6eca88d96d881dd77b9 (patch)
tree40e7cb0fbbad5a4a3aaec49cc5f9054d8dd2235d /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentd96d96eebb06d41010a86cf56b4d9ea47f597152 (diff)
ceph: Provide a splice-read wrapper
Provide a splice_read wrapper for Ceph. This does the inode shutdown check before proceeding and jumps to copy_splice_read() if the file has inline data or is a synchronous file. We try and get FILE_RD and either FILE_CACHE and/or FILE_LAZYIO caps and hold them across filemap_splice_read(). If we fail to get FILE_CACHE or FILE_LAZYIO capabilities, we use copy_splice_read() instead. Signed-off-by: David Howells <[email protected]> Reviewed-by: Xiubo Li <[email protected]> cc: Christoph Hellwig <[email protected]> cc: Al Viro <[email protected]> cc: Jens Axboe <[email protected]> cc: Ilya Dryomov <[email protected]> cc: Jeff Layton <[email protected]> cc: [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/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions