diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2011-10-31 18:03:35 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-11-02 23:56:06 -0400 |
commit | e2e04355d9647305c666462a49223f2942a635f0 (patch) | |
tree | ecfe8fb11a29a11d2728c1cdd8d5e2d82c724e41 /fs/nfs/objlayout/objio_osd.c | |
parent | 96218556b03d3c6505e2880a097338bf277fd783 (diff) |
pnfs-obj: Rename objlayout_io_state => objlayout_io_res
* All instances of objlayout_io_state => objlayout_io_res
* All instances of state => oir;
* All instances of ol_state => oir;
Big but nothing to it
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/objlayout/objio_osd.c')
-rw-r--r-- | fs/nfs/objlayout/objio_osd.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c index 48eb91aad554..2347e0ac63e6 100644 --- a/fs/nfs/objlayout/objio_osd.c +++ b/fs/nfs/objlayout/objio_osd.c | |||
@@ -146,7 +146,7 @@ typedef int (*objio_done_fn)(struct objio_state *ios); | |||
146 | 146 | ||
147 | struct objio_state { | 147 | struct objio_state { |
148 | /* Generic layer */ | 148 | /* Generic layer */ |
149 | struct objlayout_io_state ol_state; | 149 | struct objlayout_io_res oir; |
150 | 150 | ||
151 | struct page **pages; | 151 | struct page **pages; |
152 | unsigned pgbase; | 152 | unsigned pgbase; |
@@ -422,7 +422,7 @@ objio_alloc_io_state(struct pnfs_layout_hdr *pnfs_layout_type, | |||
422 | ios = &aos->objios; | 422 | ios = &aos->objios; |
423 | 423 | ||
424 | ios->layout = objio_seg; | 424 | ios->layout = objio_seg; |
425 | objlayout_init_ioerrs(&aos->objios.ol_state, objio_seg->num_comps, | 425 | objlayout_init_ioerrs(&aos->objios.oir, objio_seg->num_comps, |
426 | aos->ioerrs, rpcdata, pnfs_layout_type); | 426 | aos->ioerrs, rpcdata, pnfs_layout_type); |
427 | 427 | ||
428 | ios->pages = pages; | 428 | ios->pages = pages; |
@@ -437,10 +437,9 @@ objio_alloc_io_state(struct pnfs_layout_hdr *pnfs_layout_type, | |||
437 | return 0; | 437 | return 0; |
438 | } | 438 | } |
439 | 439 | ||
440 | void objio_free_result(struct objlayout_io_state *ol_state) | 440 | void objio_free_result(struct objlayout_io_res *oir) |
441 | { | 441 | { |
442 | struct objio_state *ios = container_of(ol_state, struct objio_state, | 442 | struct objio_state *ios = container_of(oir, struct objio_state, oir); |
443 | ol_state); | ||
444 | 443 | ||
445 | kfree(ios); | 444 | kfree(ios); |
446 | } | 445 | } |
@@ -519,7 +518,7 @@ static int _io_check(struct objio_state *ios, bool is_write) | |||
519 | 518 | ||
520 | continue; /* we recovered */ | 519 | continue; /* we recovered */ |
521 | } | 520 | } |
522 | objlayout_io_set_result(&ios->ol_state, i, | 521 | objlayout_io_set_result(&ios->oir, i, |
523 | &ios->layout->comps[i].oc_object_id, | 522 | &ios->layout->comps[i].oc_object_id, |
524 | osd_pri_2_pnfs_err(osi.osd_err_pri), | 523 | osd_pri_2_pnfs_err(osi.osd_err_pri), |
525 | ios->per_dev[i].offset, | 524 | ios->per_dev[i].offset, |
@@ -812,7 +811,7 @@ static int _read_done(struct objio_state *ios) | |||
812 | else | 811 | else |
813 | status = ret; | 812 | status = ret; |
814 | 813 | ||
815 | objlayout_read_done(&ios->ol_state, status, ios->sync); | 814 | objlayout_read_done(&ios->oir, status, ios->sync); |
816 | return ret; | 815 | return ret; |
817 | } | 816 | } |
818 | 817 | ||
@@ -906,13 +905,13 @@ static int _write_done(struct objio_state *ios) | |||
906 | if (likely(!ret)) { | 905 | if (likely(!ret)) { |
907 | /* FIXME: should be based on the OSD's persistence model | 906 | /* FIXME: should be based on the OSD's persistence model |
908 | * See OSD2r05 Section 4.13 Data persistence model */ | 907 | * See OSD2r05 Section 4.13 Data persistence model */ |
909 | ios->ol_state.committed = NFS_FILE_SYNC; | 908 | ios->oir.committed = NFS_FILE_SYNC; |
910 | status = ios->length; | 909 | status = ios->length; |
911 | } else { | 910 | } else { |
912 | status = ret; | 911 | status = ret; |
913 | } | 912 | } |
914 | 913 | ||
915 | objlayout_write_done(&ios->ol_state, status, ios->sync); | 914 | objlayout_write_done(&ios->oir, status, ios->sync); |
916 | return ret; | 915 | return ret; |
917 | } | 916 | } |
918 | 917 | ||