diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index b483e5d206cb..51328ae640dd 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -1464,10 +1464,6 @@ static int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *sym | |||
1464 | char *kaddr; | 1464 | char *kaddr; |
1465 | struct iattr attr; | 1465 | struct iattr attr; |
1466 | unsigned int pathlen = strlen(symname); | 1466 | unsigned int pathlen = strlen(symname); |
1467 | struct qstr qsymname = { | ||
1468 | .name = symname, | ||
1469 | .len = pathlen, | ||
1470 | }; | ||
1471 | int error; | 1467 | int error; |
1472 | 1468 | ||
1473 | dfprintk(VFS, "NFS: symlink(%s/%ld, %s, %s)\n", dir->i_sb->s_id, | 1469 | dfprintk(VFS, "NFS: symlink(%s/%ld, %s, %s)\n", dir->i_sb->s_id, |
@@ -1493,10 +1489,8 @@ static int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *sym | |||
1493 | memset(kaddr + pathlen, 0, PAGE_SIZE - pathlen); | 1489 | memset(kaddr + pathlen, 0, PAGE_SIZE - pathlen); |
1494 | kunmap_atomic(kaddr, KM_USER0); | 1490 | kunmap_atomic(kaddr, KM_USER0); |
1495 | 1491 | ||
1496 | /* XXX: eventually this will pass in {page, pathlen}, | ||
1497 | * instead of qsymname; need XDR changes for that */ | ||
1498 | nfs_begin_data_update(dir); | 1492 | nfs_begin_data_update(dir); |
1499 | error = NFS_PROTO(dir)->symlink(dir, dentry, &qsymname, &attr); | 1493 | error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); |
1500 | nfs_end_data_update(dir); | 1494 | nfs_end_data_update(dir); |
1501 | if (error != 0) { | 1495 | if (error != 0) { |
1502 | dfprintk(VFS, "NFS: symlink(%s/%ld, %s, %s) error %d\n", | 1496 | dfprintk(VFS, "NFS: symlink(%s/%ld, %s, %s) error %d\n", |