Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25603
b: refs/heads/master
c: 0b749ce
h: refs/heads/master
i:
  25601: 7bb8a08
  25599: e77db04
v: v3
  • Loading branch information
Jens Axboe committed Apr 10, 2006
1 parent 9bdb8f2 commit addd2ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 49d0b21be21efc07526d637e0ae935019667e532
refs/heads/master: 0b749ce3802428007a37870eb51ba3c0bdf90857
7 changes: 5 additions & 2 deletions trunk/fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,12 @@ 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.
*/
do_page_cache_readahead(mapping, in, index, nr_pages);
if (!offset || nr_pages > 1)
do_page_cache_readahead(mapping, in, index, nr_pages);

/*
* now fill in the holes
Expand Down

0 comments on commit addd2ea

Please sign in to comment.