aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/fscache.c
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2021-01-28 09:55:03 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2021-02-01 13:32:48 -0500
commit1e83b173b2663b7d357309584678cf24787f0713 (patch)
tree1ff80de8e812f21d93b427981118e65c5d20d342 /fs/nfs/fscache.c
parentNFS: Call readpage_async_filler() from nfs_readpage_async() (diff)
downloadlinux-dev-1e83b173b2663b7d357309584678cf24787f0713.tar.xz
linux-dev-1e83b173b2663b7d357309584678cf24787f0713.zip
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.c4
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);
}
}