patch-2.3.99-pre7 linux/fs/ncpfs/symlink.c

Next file: linux/fs/nfs/read.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/fs/ncpfs/symlink.c linux/fs/ncpfs/symlink.c
@@ -43,9 +43,9 @@
 
 /* ----- 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);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)