aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/vfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 6acec3416763..e6dfa149a300 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1134,7 +1134,7 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
1134 "nfsd_create: parent %s/%s not locked!\n", 1134 "nfsd_create: parent %s/%s not locked!\n",
1135 dentry->d_parent->d_name.name, 1135 dentry->d_parent->d_name.name,
1136 dentry->d_name.name); 1136 dentry->d_name.name);
1137 err = -EIO; 1137 err = nfserr_io;
1138 goto out; 1138 goto out;
1139 } 1139 }
1140 } 1140 }
@@ -1600,7 +1600,7 @@ nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen,
1600 if ((ffhp->fh_export->ex_flags & NFSEXP_MSNFS) && 1600 if ((ffhp->fh_export->ex_flags & NFSEXP_MSNFS) &&
1601 ((atomic_read(&odentry->d_count) > 1) 1601 ((atomic_read(&odentry->d_count) > 1)
1602 || (atomic_read(&ndentry->d_count) > 1))) { 1602 || (atomic_read(&ndentry->d_count) > 1))) {
1603 err = nfserr_perm; 1603 err = -EPERM;
1604 } else 1604 } else
1605#endif 1605#endif
1606 err = vfs_rename(fdir, odentry, tdir, ndentry); 1606 err = vfs_rename(fdir, odentry, tdir, ndentry);
@@ -1672,7 +1672,7 @@ nfsd_unlink(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
1672#ifdef MSNFS 1672#ifdef MSNFS
1673 if ((fhp->fh_export->ex_flags & NFSEXP_MSNFS) && 1673 if ((fhp->fh_export->ex_flags & NFSEXP_MSNFS) &&
1674 (atomic_read(&rdentry->d_count) > 1)) { 1674 (atomic_read(&rdentry->d_count) > 1)) {
1675 err = nfserr_perm; 1675 err = -EPERM;
1676 } else 1676 } else
1677#endif 1677#endif
1678 err = vfs_unlink(dirp, rdentry); 1678 err = vfs_unlink(dirp, rdentry);