summaryrefslogtreecommitdiff
path: root/include/scsi/osd_ore.h
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2011-10-02 17:32:50 +0400
committerBoaz Harrosh <bharrosh@panasas.com>2011-10-14 20:53:54 +0400
commit98260754046eee4cc7d75751a4a20182ade39f58 (patch)
tree550d555ffbb51dde9a5fce2ecea1f19385de069e /include/scsi/osd_ore.h
parentb916c5cd4d895a27b47a652648958f73e4f23ac6 (diff)
downloadlinux-98260754046eee4cc7d75751a4a20182ade39f58.tar.xz
ore: cleanup: Embed an ore_striping_info inside ore_io_state
Now that each ore_io_state covers only a single raid group. A single striping_info math is needed. Embed one inside ore_io_state to cache the calculation results and eliminate an extra call. Also the outer _prepare_for_striping is removed since it does nothing. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'include/scsi/osd_ore.h')
-rw-r--r--include/scsi/osd_ore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/osd_ore.h b/include/scsi/osd_ore.h
index 8fefdfbb1ced..baeef0200a1f 100644
--- a/include/scsi/osd_ore.h
+++ b/include/scsi/osd_ore.h
@@ -93,6 +93,7 @@ typedef void (*ore_io_done_fn)(struct ore_io_state *ios, void *private);
struct ore_io_state {
struct kref kref;
+ struct ore_striping_info si;
void *private;
ore_io_done_fn done;