Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348401
b: refs/heads/master
c: ae62ca7
h: refs/heads/master
i:
  348399: ec99129
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 7, 2013
1 parent ec74eb6 commit 35976f1
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9dd4a13a89d7c27e51cb87b9e95e82d8999826da
refs/heads/master: ae62ca7b03217be5e74759dc6d7698c95df498b3
4 changes: 3 additions & 1 deletion trunk/fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,10 @@ static int pipe_to_sendpage(struct pipe_inode_info *pipe,
return -EINVAL;

more = (sd->flags & SPLICE_F_MORE) ? MSG_MORE : 0;
if (sd->len < sd->total_len)

if (sd->len < sd->total_len && pipe->nrbufs > 1)
more |= MSG_SENDPAGE_NOTLAST;

return file->f_op->sendpage(file, buf->page, buf->offset,
sd->len, &pos, more);
}
Expand Down

0 comments on commit 35976f1

Please sign in to comment.