diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-05-06 09:12:31 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-05-28 18:40:28 -0400 |
commit | a4cdda59111f92000297e0d3edb1e0e08ba3549b (patch) | |
tree | 82d09653ae72768829c50c4138b7dc35b6c9f86b /include | |
parent | 4a0de55c565a36cac8422b76a948c4634a90781e (diff) |
NFS: Create a common pgio_rpc_prepare function
The read and write paths do exactly the same thing for the rpc_prepare
rpc_op. This patch combines them together into a single function.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_page.h | 2 | ||||
-rw-r--r-- | include/linux/nfs_xdr.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index 594812546c25..da00a4d6f470 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h | |||
@@ -53,8 +53,10 @@ struct nfs_pageio_ops { | |||
53 | }; | 53 | }; |
54 | 54 | ||
55 | struct nfs_rw_ops { | 55 | struct nfs_rw_ops { |
56 | const fmode_t rw_mode; | ||
56 | struct nfs_rw_header *(*rw_alloc_header)(void); | 57 | struct nfs_rw_header *(*rw_alloc_header)(void); |
57 | void (*rw_free_header)(struct nfs_rw_header *); | 58 | void (*rw_free_header)(struct nfs_rw_header *); |
59 | void (*rw_release)(struct nfs_pgio_data *); | ||
58 | }; | 60 | }; |
59 | 61 | ||
60 | struct nfs_pageio_descriptor { | 62 | struct nfs_pageio_descriptor { |
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index a1b91b67145e..adef7bd2d06d 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -1429,11 +1429,10 @@ struct nfs_rpc_ops { | |||
1429 | struct nfs_pathconf *); | 1429 | struct nfs_pathconf *); |
1430 | int (*set_capabilities)(struct nfs_server *, struct nfs_fh *); | 1430 | int (*set_capabilities)(struct nfs_server *, struct nfs_fh *); |
1431 | int (*decode_dirent)(struct xdr_stream *, struct nfs_entry *, int); | 1431 | int (*decode_dirent)(struct xdr_stream *, struct nfs_entry *, int); |
1432 | int (*pgio_rpc_prepare)(struct rpc_task *, struct nfs_pgio_data *); | ||
1432 | void (*read_setup) (struct nfs_pgio_data *, struct rpc_message *); | 1433 | void (*read_setup) (struct nfs_pgio_data *, struct rpc_message *); |
1433 | int (*read_rpc_prepare)(struct rpc_task *, struct nfs_pgio_data *); | ||
1434 | int (*read_done) (struct rpc_task *, struct nfs_pgio_data *); | 1434 | int (*read_done) (struct rpc_task *, struct nfs_pgio_data *); |
1435 | void (*write_setup) (struct nfs_pgio_data *, struct rpc_message *); | 1435 | void (*write_setup) (struct nfs_pgio_data *, struct rpc_message *); |
1436 | int (*write_rpc_prepare)(struct rpc_task *, struct nfs_pgio_data *); | ||
1437 | int (*write_done) (struct rpc_task *, struct nfs_pgio_data *); | 1436 | int (*write_done) (struct rpc_task *, struct nfs_pgio_data *); |
1438 | void (*commit_setup) (struct nfs_commit_data *, struct rpc_message *); | 1437 | void (*commit_setup) (struct nfs_commit_data *, struct rpc_message *); |
1439 | void (*commit_rpc_prepare)(struct rpc_task *, struct nfs_commit_data *); | 1438 | void (*commit_rpc_prepare)(struct rpc_task *, struct nfs_commit_data *); |