diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-06-20 15:53:47 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-29 11:46:46 -0400 |
commit | 1abb50886afe8a126705c93dab2b50c1252a9c19 (patch) | |
tree | 484ae821c5b5b1a7dee221e9eba41119a27a3fb1 /include | |
parent | 6663ee7f8187708143255c057bc132bbc84c1894 (diff) |
NFS: Create an read_pageio_init() function
pNFS needs to select a read function based on the layout driver
currently in use, so I let each NFS version decide how to best handle
initializing reads.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_xdr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 4d62b774ddaf..e00b8b3c334e 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -1354,6 +1354,7 @@ struct nfs_access_entry; | |||
1354 | struct nfs_client; | 1354 | struct nfs_client; |
1355 | struct rpc_timeout; | 1355 | struct rpc_timeout; |
1356 | struct nfs_client_initdata; | 1356 | struct nfs_client_initdata; |
1357 | struct nfs_pageio_descriptor; | ||
1357 | 1358 | ||
1358 | /* | 1359 | /* |
1359 | * RPC procedure vector for NFSv2/NFSv3 demuxing | 1360 | * RPC procedure vector for NFSv2/NFSv3 demuxing |
@@ -1407,6 +1408,8 @@ struct nfs_rpc_ops { | |||
1407 | int (*set_capabilities)(struct nfs_server *, struct nfs_fh *); | 1408 | int (*set_capabilities)(struct nfs_server *, struct nfs_fh *); |
1408 | int (*decode_dirent)(struct xdr_stream *, struct nfs_entry *, int); | 1409 | int (*decode_dirent)(struct xdr_stream *, struct nfs_entry *, int); |
1409 | void (*read_setup) (struct nfs_read_data *, struct rpc_message *); | 1410 | void (*read_setup) (struct nfs_read_data *, struct rpc_message *); |
1411 | void (*read_pageio_init)(struct nfs_pageio_descriptor *, struct inode *, | ||
1412 | const struct nfs_pgio_completion_ops *); | ||
1410 | void (*read_rpc_prepare)(struct rpc_task *, struct nfs_read_data *); | 1413 | void (*read_rpc_prepare)(struct rpc_task *, struct nfs_read_data *); |
1411 | int (*read_done) (struct rpc_task *, struct nfs_read_data *); | 1414 | int (*read_done) (struct rpc_task *, struct nfs_read_data *); |
1412 | void (*write_setup) (struct nfs_write_data *, struct rpc_message *); | 1415 | void (*write_setup) (struct nfs_write_data *, struct rpc_message *); |