aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-01-22 20:54:52 +0000
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-02-25 15:07:07 -0500
commit8786fde8421ce755a842051f9528674a1b1f0b9a (patch)
tree1052211ef0a255524ad285c1c1648ad95b1b0d93 /fs/nfs/file.c
parentNFS: simplify check for freeing cn_resp (diff)
downloadlinux-dev-8786fde8421ce755a842051f9528674a1b1f0b9a.tar.xz
linux-dev-8786fde8421ce755a842051f9528674a1b1f0b9a.zip
Convert NFS from readpages to readahead
NFS is one of the last two users of the deprecated ->readpages aop. This conversion looks straightforward, but I have only compile-tested it. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 76d76acbc594..4d681683d13c 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -514,7 +514,7 @@ static void nfs_swap_deactivate(struct file *file)
const struct address_space_operations nfs_file_aops = {
.readpage = nfs_readpage,
- .readpages = nfs_readpages,
+ .readahead = nfs_readahead,
.set_page_dirty = __set_page_dirty_nobuffers,
.writepage = nfs_writepage,
.writepages = nfs_writepages,