diff options
author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-05-06 09:12:40 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-05-29 11:11:41 -0400 |
commit | 41d8d5b7a559a9bfbf9680d1e4777e1a7b0149d5 (patch) | |
tree | 23255c818fa6daad17e74c6e5602d57573c06d80 /fs/nfs/pagelist.c | |
parent | cf485fcd68bc2dd91258e844ba4649404fff3235 (diff) |
NFS: Create a common nfs_pageio_ops struct
At this point the read and write structures look identical, so combine
them into something shared by both.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pagelist.c')
-rw-r--r-- | fs/nfs/pagelist.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 83d4ab46a2e9..29591094125a 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c | |||
@@ -688,7 +688,7 @@ static int nfs_pgio_one(struct nfs_pageio_descriptor *desc, | |||
688 | return 0; | 688 | return 0; |
689 | } | 689 | } |
690 | 690 | ||
691 | int nfs_generic_pg_pgios(struct nfs_pageio_descriptor *desc) | 691 | static int nfs_generic_pg_pgios(struct nfs_pageio_descriptor *desc) |
692 | { | 692 | { |
693 | struct nfs_rw_header *rw_hdr; | 693 | struct nfs_rw_header *rw_hdr; |
694 | struct nfs_pgio_header *hdr; | 694 | struct nfs_pgio_header *hdr; |
@@ -933,3 +933,8 @@ static const struct rpc_call_ops nfs_pgio_common_ops = { | |||
933 | .rpc_call_done = nfs_pgio_result, | 933 | .rpc_call_done = nfs_pgio_result, |
934 | .rpc_release = nfs_pgio_release, | 934 | .rpc_release = nfs_pgio_release, |
935 | }; | 935 | }; |
936 | |||
937 | const struct nfs_pageio_ops nfs_pgio_rw_ops = { | ||
938 | .pg_test = nfs_generic_pg_test, | ||
939 | .pg_doio = nfs_generic_pg_pgios, | ||
940 | }; | ||