diff options
Diffstat (limited to 'fs/nfs/read.c')
-rw-r--r-- | fs/nfs/read.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c index be9e8270f4d7..ab2f7d233e01 100644 --- a/fs/nfs/read.c +++ b/fs/nfs/read.c | |||
@@ -531,7 +531,10 @@ readpage_async_filler(void *data, struct page *page) | |||
531 | 531 | ||
532 | if (len < PAGE_CACHE_SIZE) | 532 | if (len < PAGE_CACHE_SIZE) |
533 | zero_user_segment(page, len, PAGE_CACHE_SIZE); | 533 | zero_user_segment(page, len, PAGE_CACHE_SIZE); |
534 | nfs_pageio_add_request(desc->pgio, new); | 534 | if (!nfs_pageio_add_request(desc->pgio, new)) { |
535 | error = desc->pgio->pg_error; | ||
536 | goto out_unlock; | ||
537 | } | ||
535 | return 0; | 538 | return 0; |
536 | out_error: | 539 | out_error: |
537 | error = PTR_ERR(new); | 540 | error = PTR_ERR(new); |