mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
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>
This commit is contained in:
parent
2294f9b879
commit
6ece0a0452
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user