aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/objlayout/objio_osd.c
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@netapp.com>2014-05-06 09:12:26 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-05-28 18:12:47 -0400
commit9c7e1b3d50b56b8d8f6237ed232350b7c6476cd5 (patch)
tree4113ef7dcdbf7b55139f7765d7dc1044d7c0fd83 /fs/nfs/objlayout/objio_osd.c
parent9137bdf3d241fc2cbeb2a8ced51d1546150aa6a1 (diff)
NFS: Create a common read and write data struct
At this point, the only difference between nfs_read_data and nfs_write_data is the write verifier. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/objlayout/objio_osd.c')
-rw-r--r--fs/nfs/objlayout/objio_osd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c
index 5457745dd4f1..426b366b0b33 100644
--- a/fs/nfs/objlayout/objio_osd.c
+++ b/fs/nfs/objlayout/objio_osd.c
@@ -439,7 +439,7 @@ static void _read_done(struct ore_io_state *ios, void *private)
439 objlayout_read_done(&objios->oir, status, objios->sync); 439 objlayout_read_done(&objios->oir, status, objios->sync);
440} 440}
441 441
442int objio_read_pagelist(struct nfs_read_data *rdata) 442int objio_read_pagelist(struct nfs_pgio_data *rdata)
443{ 443{
444 struct nfs_pgio_header *hdr = rdata->header; 444 struct nfs_pgio_header *hdr = rdata->header;
445 struct objio_state *objios; 445 struct objio_state *objios;
@@ -487,7 +487,7 @@ static void _write_done(struct ore_io_state *ios, void *private)
487static struct page *__r4w_get_page(void *priv, u64 offset, bool *uptodate) 487static struct page *__r4w_get_page(void *priv, u64 offset, bool *uptodate)
488{ 488{
489 struct objio_state *objios = priv; 489 struct objio_state *objios = priv;
490 struct nfs_write_data *wdata = objios->oir.rpcdata; 490 struct nfs_pgio_data *wdata = objios->oir.rpcdata;
491 struct address_space *mapping = wdata->header->inode->i_mapping; 491 struct address_space *mapping = wdata->header->inode->i_mapping;
492 pgoff_t index = offset / PAGE_SIZE; 492 pgoff_t index = offset / PAGE_SIZE;
493 struct page *page; 493 struct page *page;
@@ -531,7 +531,7 @@ static const struct _ore_r4w_op _r4w_op = {
531 .put_page = &__r4w_put_page, 531 .put_page = &__r4w_put_page,
532}; 532};
533 533
534int objio_write_pagelist(struct nfs_write_data *wdata, int how) 534int objio_write_pagelist(struct nfs_pgio_data *wdata, int how)
535{ 535{
536 struct nfs_pgio_header *hdr = wdata->header; 536 struct nfs_pgio_header *hdr = wdata->header;
537 struct objio_state *objios; 537 struct objio_state *objios;