diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-25 20:40:38 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-27 12:39:36 -0400 |
commit | 67af7611ec57dbcbc96f9d9daa4d3c7b0999aa73 (patch) | |
tree | c6e73a08bf6268767dc7494df5ccbb423288b952 /fs/nfs/pnfs.h | |
parent | 29559b11aef072f893cd32280dcec9d7380ca011 (diff) | |
download | op-kernel-dev-67af7611ec57dbcbc96f9d9daa4d3c7b0999aa73.zip op-kernel-dev-67af7611ec57dbcbc96f9d9daa4d3c7b0999aa73.tar.gz |
NFSv4.1/pnfs: Refactor pnfs_set_layoutcommit()
pnfs_set_layoutcommit() and pnfs_commit_set_layoutcommit() are 100% identical
except for the function arguments. Refactor to eliminate the difference.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index b5654e8..66bf5e1 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -264,8 +264,7 @@ bool pnfs_roc(struct inode *ino); void pnfs_roc_release(struct inode *ino); void pnfs_roc_set_barrier(struct inode *ino, u32 barrier); bool pnfs_roc_drain(struct inode *ino, u32 *barrier, struct rpc_task *task); -void pnfs_set_layoutcommit(struct nfs_pgio_header *); -void pnfs_commit_set_layoutcommit(struct nfs_commit_data *data); +void pnfs_set_layoutcommit(struct inode *, struct pnfs_layout_segment *, loff_t); void pnfs_cleanup_layoutcommit(struct nfs4_layoutcommit_data *data); int pnfs_layoutcommit_inode(struct inode *inode, bool sync); int _pnfs_return_layout(struct inode *); |