| 214 | } |
| 215 | |
| 216 | static int check_zero_splice(struct io_uring *ring, struct test_ctx *ctx) |
| 217 | { |
| 218 | int ret; |
| 219 | |
| 220 | ret = do_splice(ring, ctx->fd_in, -1, ctx->pipe1[1], -1, 0); |
| 221 | if (ret) |
| 222 | return ret; |
| 223 | |
| 224 | ret = do_splice(ring, ctx->pipe2[0], -1, ctx->pipe1[1], -1, 0); |
| 225 | if (ret) |
| 226 | return ret; |
| 227 | |
| 228 | return 0; |
| 229 | } |
| 230 | |
| 231 | static int splice_to_pipe(struct io_uring *ring, struct test_ctx *ctx) |
| 232 | { |