summaryrefslogtreecommitdiffstats
path: root/fs/nfs/symlink.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-08 00:53:00 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-08 00:53:00 +0000
commitb8553086288629b4efb77e97f5582e08bc50ad65 (patch)
tree0a19bd1c21e148f35c7a0f76baa4f7a056b966b0 /fs/nfs/symlink.c
parent75b6d92f2dd5112b02f4e78cf9f35f9825946ef0 (diff)
Merge with 2.4.0-test3-pre4.
Diffstat (limited to 'fs/nfs/symlink.c')
-rw-r--r--fs/nfs/symlink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/symlink.c b/fs/nfs/symlink.c
index 6b4a94f44..4c9c45e2a 100644
--- a/fs/nfs/symlink.c
+++ b/fs/nfs/symlink.c
@@ -22,6 +22,7 @@
#include <linux/mm.h>
#include <linux/malloc.h>
#include <linux/string.h>
+#include <linux/smp_lock.h>
/* Symlink caching in the page cache is even more simplistic
* and straight-forward than readdir caching.
@@ -36,8 +37,10 @@ static int nfs_symlink_filler(struct dentry *dentry, struct page *page)
* in host byte order, followed by the string. The
* XDR response verification will NULL terminate it.
*/
+ lock_kernel();
error = NFS_PROTO(inode)->readlink(dentry, buffer,
PAGE_CACHE_SIZE - sizeof(u32)-4);
+ unlock_kernel();
if (error < 0)
goto error;
SetPageUptodate(page);