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/internal.h | |
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/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index b802fb3a2d99..9e6475bc5ba2 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -459,6 +459,7 @@ void nfs_mark_request_commit(struct nfs_page *req, struct nfs_commit_info *cinfo, u32 ds_commit_idx); int nfs_write_need_commit(struct nfs_pgio_header *); +void nfs_writeback_update_inode(struct nfs_pgio_header *hdr); int nfs_generic_commit_list(struct inode *inode, struct list_head *head, int how, struct nfs_commit_info *cinfo); void nfs_retry_commit(struct list_head *page_list, |