diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-01 19:39:03 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-09 16:28:41 -0400 |
commit | 6ece0a0452c97fe6cbdce1ff3069248d99f1b4aa (patch) | |
tree | 208c72aa818bb5ef655c11f3c0bf47b21424eca0 /fs/nfs | |
parent | 2294f9b8793d02b265423207e55ce5b26d8960cd (diff) | |
download | linux-stable-6ece0a0452c97fe6cbdce1ff3069248d99f1b4aa.tar.gz linux-stable-6ece0a0452c97fe6cbdce1ff3069248d99f1b4aa.tar.bz2 linux-stable-6ece0a0452c97fe6cbdce1ff3069248d99f1b4aa.zip |
nfs: Pass the file pointer to nfs_symlink_filler()
In preparation for unifying the read_cache_page() and read_folio()
implementations, make nfs_symlink_filler() get the inode
from the page instead of passing it in from read_cache_page().
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/symlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/symlink.c b/fs/nfs/symlink.c index 25ba299fdac2..8b53538bcc75 100644 --- a/fs/nfs/symlink.c +++ b/fs/nfs/symlink.c @@ -28,7 +28,7 @@ static int nfs_symlink_filler(void *data, struct page *page) { - struct inode *inode = data; + struct inode *inode = page->mapping->host; int error; error = NFS_PROTO(inode)->readlink(inode, page, 0, PAGE_SIZE); @@ -67,7 +67,7 @@ static const char *nfs_get_link(struct dentry *dentry, if (err) return err; page = read_cache_page(&inode->i_data, 0, nfs_symlink_filler, - inode); + NULL); if (IS_ERR(page)) return ERR_CAST(page); } |