]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/nfsd/vfs.c
Merge branch 'for-2.6.38/core' of git://git.kernel.dk/linux-2.6-block
[mv-sheeva.git] / fs / nfsd / vfs.c
index 106ed482f11994a42608fa97f831f85f574a5197..230b79fbf0051be98df5bc5067a2f6f8f18b3b8a 100644 (file)
@@ -1751,8 +1751,7 @@ nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen,
                goto out_dput_new;
 
        if (svc_msnfs(ffhp) &&
-               ((atomic_read(&odentry->d_count) > 1)
-                || (atomic_read(&ndentry->d_count) > 1))) {
+               ((odentry->d_count > 1) || (ndentry->d_count > 1))) {
                        host_err = -EPERM;
                        goto out_dput_new;
        }
@@ -1838,7 +1837,7 @@ nfsd_unlink(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
        if (type != S_IFDIR) { /* It's UNLINK */
 #ifdef MSNFS
                if ((fhp->fh_export->ex_flags & NFSEXP_MSNFS) &&
-                       (atomic_read(&rdentry->d_count) > 1)) {
+                       (rdentry->d_count > 1)) {
                        host_err = -EPERM;
                } else
 #endif