summaryrefslogtreecommitdiffstats
path: root/fs/affs/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/affs/symlink.c')
-rw-r--r--fs/affs/symlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/affs/symlink.c b/fs/affs/symlink.c
index cd02b93dd..aee023ef5 100644
--- a/fs/affs/symlink.c
+++ b/fs/affs/symlink.c
@@ -15,10 +15,10 @@
#include <linux/amigaffs.h>
#include <linux/pagemap.h>
-static int affs_symlink_readpage(struct dentry *dentry, struct page *page)
+static int affs_symlink_readpage(struct file *file, struct page *page)
{
struct buffer_head *bh;
- struct inode *inode = dentry->d_inode;
+ struct inode *inode = (struct inode*)page->mapping->host;
char *link = (char*)kmap(page);
struct slink_front *lf;
int err;