patch-2.4.20 linux-2.4.20/fs/nfs/symlink.c
Next file: linux-2.4.20/fs/nfs/unlink.c
Previous file: linux-2.4.20/fs/nfs/read.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/fs/nfs/symlink.c
- Orig date:
Fri Feb 9 11:29:44 2001
diff -urN linux-2.4.19/fs/nfs/symlink.c linux-2.4.20/fs/nfs/symlink.c
@@ -29,7 +29,6 @@
*/
static int nfs_symlink_filler(struct inode *inode, struct page *page)
{
- void *buffer = kmap(page);
int error;
/* We place the length at the beginning of the page,
@@ -37,13 +36,11 @@
* XDR response verification will NULL terminate it.
*/
lock_kernel();
- error = NFS_PROTO(inode)->readlink(inode, buffer,
- PAGE_CACHE_SIZE - sizeof(u32)-4);
+ error = NFS_PROTO(inode)->readlink(inode, page);
unlock_kernel();
if (error < 0)
goto error;
SetPageUptodate(page);
- kunmap(page);
UnlockPage(page);
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)