Loading fs/splice.c +5 −2 Original line number Diff line number Diff line Loading @@ -250,8 +250,11 @@ static int __generic_file_splice_read(struct file *in, struct inode *pipe, nr_pages = PIPE_BUFFERS; /* * initiate read-ahead on this page range * initiate read-ahead on this page range. however, don't call into * read-ahead if this is a non-zero offset (we are likely doing small * chunk splice and the page is already there) for a single page. */ if (!offset || nr_pages > 1) do_page_cache_readahead(mapping, in, index, nr_pages); /* Loading Loading
fs/splice.c +5 −2 Original line number Diff line number Diff line Loading @@ -250,8 +250,11 @@ static int __generic_file_splice_read(struct file *in, struct inode *pipe, nr_pages = PIPE_BUFFERS; /* * initiate read-ahead on this page range * initiate read-ahead on this page range. however, don't call into * read-ahead if this is a non-zero offset (we are likely doing small * chunk splice and the page is already there) for a single page. */ if (!offset || nr_pages > 1) do_page_cache_readahead(mapping, in, index, nr_pages); /* Loading