diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-26 23:36:09 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-02 05:23:06 +0100 |
commit | a08a8cd375db9769588257e7782f6b6b68561b88 (patch) | |
tree | d8546485f16b6ffc2c1d15a2009d384fc3f488ef /fs/nfs/nfs3proc.c | |
parent | NFS: Set an attribute barrier on all updates (diff) | |
download | linux-a08a8cd375db9769588257e7782f6b6b68561b88.tar.xz linux-a08a8cd375db9769588257e7782f6b6b68561b88.zip |
NFS: Add attribute update barriers to NFS writebacks
Ensure that other operations that race with our write RPC calls
cannot revert the file size updates that were made on the server.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfs/nfs3proc.c')
-rw-r--r-- | fs/nfs/nfs3proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 11109a137c0c..1f11d2533ee4 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c @@ -834,7 +834,7 @@ static int nfs3_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr) if (nfs3_async_handle_jukebox(task, inode)) return -EAGAIN; if (task->tk_status >= 0) - nfs_post_op_update_inode_force_wcc(inode, hdr->res.fattr); + nfs_writeback_update_inode(hdr); return 0; } |