patch-2.4.0-test11 linux/fs/nfs/symlink.c

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

diff -u --recursive --new-file v2.4.0-test10/linux/fs/nfs/symlink.c linux/fs/nfs/symlink.c
@@ -30,7 +30,7 @@
 static int nfs_symlink_filler(struct dentry *dentry, struct page *page)
 {
 	struct inode *inode = dentry->d_inode;
-	void *buffer = (void *)kmap(page);
+	void *buffer = kmap(page);
 	int error;
 
 	/* We place the length at the beginning of the page,
@@ -69,7 +69,7 @@
 	if (!Page_Uptodate(page))
 		goto getlink_read_error;
 	*ppage = page;
-	p = (u32 *) kmap(page);
+	p = kmap(page);
 	return (char*)(p+1);
 		
 getlink_read_error:

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