diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-22 20:54:52 +0000 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-02-25 15:07:07 -0500 |
commit | 8786fde8421ce755a842051f9528674a1b1f0b9a (patch) | |
tree | 1052211ef0a255524ad285c1c1648ad95b1b0d93 /fs/nfs/file.c | |
parent | 98c27f276be85a73f0babc61c9f8128b7ef593c6 (diff) | |
download | lwn-8786fde8421ce755a842051f9528674a1b1f0b9a.tar.gz lwn-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.c | 2 |
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, |