|
@@ -399,17 +399,7 @@ __generic_file_splice_read(struct file *in, loff_t *ppos,
|
|
* If the page isn't uptodate, we may need to start io on it
|
|
* If the page isn't uptodate, we may need to start io on it
|
|
*/
|
|
*/
|
|
if (!PageUptodate(page)) {
|
|
if (!PageUptodate(page)) {
|
|
- /*
|
|
|
|
- * If in nonblock mode then dont block on waiting
|
|
|
|
- * for an in-flight io page
|
|
|
|
- */
|
|
|
|
- if (flags & SPLICE_F_NONBLOCK) {
|
|
|
|
- if (!trylock_page(page)) {
|
|
|
|
- error = -EAGAIN;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- } else
|
|
|
|
- lock_page(page);
|
|
|
|
|
|
+ lock_page(page);
|
|
|
|
|
|
/*
|
|
/*
|
|
* Page was truncated, or invalidated by the
|
|
* Page was truncated, or invalidated by the
|