diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/shmem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 585bd220a21e..c244e93a70fa 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1577,6 +1577,7 @@ static ssize_t shmem_file_splice_read(struct file *in, loff_t *ppos, | |||
1577 | struct splice_pipe_desc spd = { | 1577 | struct splice_pipe_desc spd = { |
1578 | .pages = pages, | 1578 | .pages = pages, |
1579 | .partial = partial, | 1579 | .partial = partial, |
1580 | .nr_pages_max = PIPE_DEF_BUFFERS, | ||
1580 | .flags = flags, | 1581 | .flags = flags, |
1581 | .ops = &page_cache_pipe_buf_ops, | 1582 | .ops = &page_cache_pipe_buf_ops, |
1582 | .spd_release = spd_release_page, | 1583 | .spd_release = spd_release_page, |
@@ -1665,7 +1666,7 @@ static ssize_t shmem_file_splice_read(struct file *in, loff_t *ppos, | |||
1665 | if (spd.nr_pages) | 1666 | if (spd.nr_pages) |
1666 | error = splice_to_pipe(pipe, &spd); | 1667 | error = splice_to_pipe(pipe, &spd); |
1667 | 1668 | ||
1668 | splice_shrink_spd(pipe, &spd); | 1669 | splice_shrink_spd(&spd); |
1669 | 1670 | ||
1670 | if (error > 0) { | 1671 | if (error > 0) { |
1671 | *ppos += error; | 1672 | *ppos += error; |