aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/raid/raid5.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/raid/raid5.h')
-rw-r--r--include/linux/raid/raid5.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/raid/raid5.h b/include/linux/raid/raid5.h
index b7b2653af7bb..6fa274aea2a0 100644
--- a/include/linux/raid/raid5.h
+++ b/include/linux/raid/raid5.h
@@ -135,6 +135,7 @@ struct stripe_head {
135 atomic_t count; /* nr of active thread/requests */ 135 atomic_t count; /* nr of active thread/requests */
136 spinlock_t lock; 136 spinlock_t lock;
137 int bm_seq; /* sequence number for bitmap flushes */ 137 int bm_seq; /* sequence number for bitmap flushes */
138 int disks; /* disks in stripe */
138 struct r5dev { 139 struct r5dev {
139 struct bio req; 140 struct bio req;
140 struct bio_vec vec; 141 struct bio_vec vec;
@@ -174,6 +175,7 @@ struct stripe_head {
174#define STRIPE_DELAYED 6 175#define STRIPE_DELAYED 6
175#define STRIPE_DEGRADED 7 176#define STRIPE_DEGRADED 7
176#define STRIPE_BIT_DELAY 8 177#define STRIPE_BIT_DELAY 8
178#define STRIPE_EXPANDING 9
177 179
178/* 180/*
179 * Plugging: 181 * Plugging:
@@ -211,6 +213,10 @@ struct raid5_private_data {
211 int raid_disks, working_disks, failed_disks; 213 int raid_disks, working_disks, failed_disks;
212 int max_nr_stripes; 214 int max_nr_stripes;
213 215
216 /* used during an expand */
217 sector_t expand_progress; /* MaxSector when no expand happening */
218 int previous_raid_disks;
219
214 struct list_head handle_list; /* stripes needing handling */ 220 struct list_head handle_list; /* stripes needing handling */
215 struct list_head delayed_list; /* stripes that have plugged requests */ 221 struct list_head delayed_list; /* stripes that have plugged requests */
216 struct list_head bitmap_list; /* stripes delaying awaiting bitmap update */ 222 struct list_head bitmap_list; /* stripes delaying awaiting bitmap update */