Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
int bytes = 0;
while (iov.iov_len) {
int bytes = 0;
while (iov.iov_len) {
- int ret = vmsplice(nd->pipes[0], &iov, 1, 0);
+ int ret = vmsplice(nd->pipes[0], &iov, 1, SPLICE_F_MOVE);
if (ret < 0) {
if (!bytes)
if (ret < 0) {
if (!bytes)
unsigned int bytes = 0;
while (iov.iov_len) {
unsigned int bytes = 0;
while (iov.iov_len) {
- int ret = vmsplice(nd->pipes[1], &iov, 1, 0);
+ int ret = vmsplice(nd->pipes[1], &iov, 1, SPLICE_F_MOVE);