diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2021-01-28 17:55:03 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-02-01 21:32:48 +0300 |
commit | 1e83b173b2663b7d357309584678cf24787f0713 (patch) | |
tree | 1ff80de8e812f21d93b427981118e65c5d20d342 /fs/nfs/fscache.c | |
parent | 0c119e3a18f994251c74c751e1657e4ef8da0c00 (diff) | |
download | linux-1e83b173b2663b7d357309584678cf24787f0713.tar.xz |
NFS: Add nfs_pageio_complete_read() and remove nfs_readpage_async()
Add nfs_pageio_complete_read() and call this from both nfs_readpage()
and nfs_readpages(), since the submission and accounting is the same
for both functions.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/fscache.c')
-rw-r--r-- | fs/nfs/fscache.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/fscache.c b/fs/nfs/fscache.c index a60df88efc40..c4c021c6ebbd 100644 --- a/fs/nfs/fscache.c +++ b/fs/nfs/fscache.c @@ -390,10 +390,6 @@ static void nfs_readpage_from_fscache_complete(struct page *page, if (!error) { SetPageUptodate(page); unlock_page(page); - } else { - error = nfs_readpage_async(context, page->mapping->host, page); - if (error) - unlock_page(page); } } |