summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ncpfs/symlink.c')
-rw-r--r--fs/ncpfs/symlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ncpfs/symlink.c b/fs/ncpfs/symlink.c
index b0bc34b22..46925eb6d 100644
--- a/fs/ncpfs/symlink.c
+++ b/fs/ncpfs/symlink.c
@@ -43,9 +43,9 @@ int ncp_create_new(struct inode *dir, struct dentry *dentry,
/* ----- read a symbolic link ------------------------------------------ */
-static int ncp_symlink_readpage(struct dentry *dentry, struct page *page)
+static int ncp_symlink_readpage(struct file *file, struct page *page)
{
- struct inode *inode=dentry->d_inode;
+ struct inode *inode = (struct inode*)page->mapping->host;
int error, length, len, cnt;
char *link;
char *buf = (char*)kmap(page);