summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-07-26 11:35:20 +1000
committerNeilBrown <neilb@suse.de>2011-07-26 11:35:20 +1000
commitc5709ef6a094c72b56355590bfa55cc107e98376 (patch)
tree60e6208feff1ca8da4ce9a90cae3ef9d028d72fc /drivers/md/raid5.h
parentf2b3b44deee1524ca4f006048e0569f47eefdb74 (diff)
downloadlinux-c5709ef6a094c72b56355590bfa55cc107e98376.tar.bz2
md/raid5: add some more fields to stripe_head_state
Adding these three fields will allow more common code to be moved to handle_stripe() struct field rearrangement by Namhyung Kim. Signed-off-by: NeilBrown <neilb@suse.de> Reviewed-by: Namhyung Kim <namhyung@gmail.com>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r--drivers/md/raid5.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h
index 05ac5cde3707..68c500af1108 100644
--- a/drivers/md/raid5.h
+++ b/drivers/md/raid5.h
@@ -243,8 +243,12 @@ struct stripe_head_state {
int locked, uptodate, to_read, to_write, failed, written;
int to_fill, compute, req_compute, non_overwrite;
int failed_num[2];
- unsigned long ops_request;
int p_failed, q_failed;
+ int dec_preread_active;
+ unsigned long ops_request;
+
+ struct bio *return_bi;
+ mdk_rdev_t *blocked_rdev;
};
/* Flags */