Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79562
b: refs/heads/master
c: 9e97198
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Jan 29, 2008
1 parent 62ff07f commit ccc468b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12f32bb31772e72d8cf52a29f961561bccc54c37
refs/heads/master: 9e97198dbf318be7958b57900d05b37c7e09ad7c
15 changes: 7 additions & 8 deletions trunk/fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,11 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
goto out_release;
}

done:
pipe->nrbufs = pipe->curbuf = 0;
if (bytes > 0)
file_accessed(in);

return bytes;

out_release:
Expand All @@ -1047,16 +1051,11 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
buf->ops = NULL;
}
}
pipe->nrbufs = pipe->curbuf = 0;

/*
* If we transferred some data, return the number of bytes:
*/
if (bytes > 0)
return bytes;

return ret;
if (!bytes)
bytes = ret;

goto done;
}
EXPORT_SYMBOL(splice_direct_to_actor);

Expand Down

0 comments on commit ccc468b

Please sign in to comment.