Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347631
b: refs/heads/master
c: fae5096
h: refs/heads/master
i:
  347629: a9af9a3
  347627: 84d702c
  347623: 5c96db0
  347615: d81dce8
v: v3
  • Loading branch information
J. Bruce Fields committed Nov 8, 2012
1 parent 3d63aab commit 8a23dbf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 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: 7fa10cd12df3ec0873a5db0d8dc8e978423b87dc
refs/heads/master: fae5096ad217db2e3368e980c1d86223f786856b
13 changes: 0 additions & 13 deletions trunk/fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,21 +1020,8 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
inode = dentry->d_inode;
exp = fhp->fh_export;

/*
* Request sync writes if
* - the sync export option has been set, or
* - the client requested O_SYNC behavior (NFSv3 feature).
* - The file system doesn't support fsync().
* When NFSv2 gathered writes have been configured for this volume,
* flushing the data to disk is handled separately below.
*/
use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp);

if (!file->f_op->fsync) {/* COMMIT3 cannot work */
stable = 2;
*stablep = 2; /* FILE_SYNC */
}

if (!EX_ISSYNC(exp))
stable = 0;
if (stable && !use_wgather) {
Expand Down

0 comments on commit 8a23dbf

Please sign in to comment.