Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57788
b: refs/heads/master
c: 00de00b
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Jun 15, 2007
1 parent fe1d93c commit 3e860b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 17ee4f49ab2c802c7818fa71c4e7e351a7230b86
refs/heads/master: 00de00bdad278783b3664ad2969954a707f5944a
3 changes: 2 additions & 1 deletion trunk/fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ static const struct pipe_buf_operations user_page_pipe_buf_ops = {
static ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
struct splice_pipe_desc *spd)
{
unsigned int spd_pages = spd->nr_pages;
int ret, do_wakeup, page_nr;

ret = 0;
Expand Down Expand Up @@ -254,7 +255,7 @@ static ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN);
}

while (page_nr < spd->nr_pages)
while (page_nr < spd_pages)
page_cache_release(spd->pages[page_nr++]);

return ret;
Expand Down

0 comments on commit 3e860b7

Please sign in to comment.