diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/vfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index e3611b55531b..5ca984bbd7d3 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -1632,7 +1632,7 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, | |||
1632 | char *name, int len, struct svc_fh *tfhp) | 1632 | char *name, int len, struct svc_fh *tfhp) |
1633 | { | 1633 | { |
1634 | struct dentry *ddir, *dnew, *dold; | 1634 | struct dentry *ddir, *dnew, *dold; |
1635 | struct inode *dirp, *dest; | 1635 | struct inode *dirp; |
1636 | __be32 err; | 1636 | __be32 err; |
1637 | int host_err; | 1637 | int host_err; |
1638 | 1638 | ||
@@ -1660,7 +1660,6 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, | |||
1660 | goto out_nfserr; | 1660 | goto out_nfserr; |
1661 | 1661 | ||
1662 | dold = tfhp->fh_dentry; | 1662 | dold = tfhp->fh_dentry; |
1663 | dest = dold->d_inode; | ||
1664 | 1663 | ||
1665 | host_err = mnt_want_write(tfhp->fh_export->ex_path.mnt); | 1664 | host_err = mnt_want_write(tfhp->fh_export->ex_path.mnt); |
1666 | if (host_err) { | 1665 | if (host_err) { |