patch-2.3.43 linux/fs/namei.c

Next file: linux/fs/ncpfs/dir.c
Previous file: linux/fs/msdos/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/fs/namei.c linux/fs/namei.c
@@ -1386,8 +1386,8 @@
 static char *page_getlink(struct dentry * dentry, struct page **ppage)
 {
 	struct page * page;
-	page = read_cache_page(&dentry->d_inode->i_data, 0,
-				(filler_t *)dentry->d_inode->i_op->readpage,
+	struct address_space *mapping = dentry->d_inode->i_mapping;
+	page = read_cache_page(mapping, 0, (filler_t *)mapping->a_ops->readpage,
 				dentry);
 	if (IS_ERR(page))
 		goto sync_fail;
@@ -1429,3 +1429,8 @@
 	}
 	return res;
 }
+
+struct inode_operations page_symlink_inode_operations = {
+	readlink:	page_readlink,
+	follow_link:	page_follow_link,
+};

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