]> err.no Git - linux-2.6/commitdiff
NFS: remove a no-longer-needed error check in nfs_symlink()
authorChuck Lever <chuck.lever@oracle.com>
Wed, 23 Aug 2006 00:06:22 +0000 (20:06 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Sep 2006 03:24:52 +0000 (23:24 -0400)
In the early days of NFS, there was no duplicate reply cache on the server.
Thus retransmitted non-idempotent requests often found that the request had
already completed on the server.  To avoid passing an unanticipated return
code to unsuspecting applications, NFS clients would often shunt error
codes that implied the request had been retried but already completed.

Thanks to NFS over TCP, duplicate reply caches on the server, and network
performance and reliability improvements, it is safe to remove such checks.

Test plan:
None.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c

index 9b496ef4abeae3be7111d421590bb0dd97a8e6c3..084e8cb41c84fd28d6895ccc640584739503ac04 100644 (file)
@@ -1476,14 +1476,10 @@ dentry->d_parent->d_name.name, dentry->d_name.name);
        error = NFS_PROTO(dir)->symlink(dir, &dentry->d_name, &qsymname,
                                          &attr, &sym_fh, &sym_attr);
        nfs_end_data_update(dir);
-       if (!error) {
+       if (!error)
                error = nfs_instantiate(dentry, &sym_fh, &sym_attr);
-       } else {
-               if (error == -EEXIST)
-                       printk("nfs_proc_symlink: %s/%s already exists??\n",
-                              dentry->d_parent->d_name.name, dentry->d_name.name);
+       else
                d_drop(dentry);
-       }
        unlock_kernel();
        return error;
 }