Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18969
b: refs/heads/master
c: 45bd3b3
h: refs/heads/master
i:
  18967: 47cff28
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Jan 19, 2006
1 parent ed1271f commit 38e589b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fcd53303de8dbbed863f6471ca92eb96a1faa28
refs/heads/master: 45bd3b3dffaa9fb1706fe001bf66276d0997a850
17 changes: 6 additions & 11 deletions trunk/fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,9 +891,9 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
int err = 0;
int stable = *stablep;

#ifdef MSNFS
err = nfserr_perm;

#ifdef MSNFS
if ((fhp->fh_export->ex_flags & NFSEXP_MSNFS) &&
(!lock_may_write(file->f_dentry->d_inode, offset, cnt)))
goto out;
Expand Down Expand Up @@ -1065,8 +1065,7 @@ nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp,
return err;
if (EX_ISSYNC(fhp->fh_export)) {
if (file->f_op && file->f_op->fsync) {
err = nfsd_sync(file);
err = nfserrno(err);
err = nfserrno(nfsd_sync(file));
} else {
err = nfserr_notsupp;
}
Expand Down Expand Up @@ -1177,7 +1176,7 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
goto out_nfserr;

if (EX_ISSYNC(fhp->fh_export)) {
err = nfsd_sync_dir(dentry);
err = nfserrno(nfsd_sync_dir(dentry));
write_inode_now(dchild->d_inode, 1);
}

Expand Down Expand Up @@ -1310,9 +1309,7 @@ nfsd_create_v3(struct svc_rqst *rqstp, struct svc_fh *fhp,
goto out_nfserr;

if (EX_ISSYNC(fhp->fh_export)) {
err = nfsd_sync_dir(dentry);
if (err)
err = nfserrno(err);
err = nfserrno(nfsd_sync_dir(dentry));
/* setattr will sync the child (or not) */
}

Expand All @@ -1339,7 +1336,7 @@ nfsd_create_v3(struct svc_rqst *rqstp, struct svc_fh *fhp,
if ((iap->ia_valid &= ~(ATTR_UID|ATTR_GID)) != 0) {
int err2 = nfsd_setattr(rqstp, resfhp, iap, 0, (time_t)0);
if (err2)
err = nfserrno(err2);
err = err2;
}

/*
Expand Down Expand Up @@ -1514,10 +1511,8 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp,
err = vfs_link(dold, dirp, dnew);
if (!err) {
if (EX_ISSYNC(ffhp->fh_export)) {
err = nfsd_sync_dir(ddir);
err = nfserrno(nfsd_sync_dir(ddir));
write_inode_now(dest, 1);
if (err)
err = nfserrno(err);
}
} else {
if (err == -EXDEV && rqstp->rq_vers == 2)
Expand Down

0 comments on commit 38e589b

Please sign in to comment.