diff options
Diffstat (limited to 'drivers/md/raid10.h')
| -rw-r--r-- | drivers/md/raid10.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/md/raid10.h b/drivers/md/raid10.h index 59cd1efb8d30..3824a087e17c 100644 --- a/drivers/md/raid10.h +++ b/drivers/md/raid10.h | |||
| @@ -33,9 +33,16 @@ struct r10_private_data_s { | |||
| 33 | * 1 stripe. | 33 | * 1 stripe. |
| 34 | */ | 34 | */ |
| 35 | 35 | ||
| 36 | sector_t dev_sectors; /* temp copy of mddev->dev_sectors */ | ||
| 37 | |||
| 36 | int chunk_shift; /* shift from chunks to sectors */ | 38 | int chunk_shift; /* shift from chunks to sectors */ |
| 37 | sector_t chunk_mask; | 39 | sector_t chunk_mask; |
| 38 | 40 | ||
| 41 | int scale_disks; /* When starting array, multiply | ||
| 42 | * each ->raid_disk by this. | ||
| 43 | * Need for raid0->raid10 migration | ||
| 44 | */ | ||
| 45 | |||
| 39 | struct list_head retry_list; | 46 | struct list_head retry_list; |
| 40 | /* queue pending writes and submit them on unplug */ | 47 | /* queue pending writes and submit them on unplug */ |
| 41 | struct bio_list pending_bio_list; | 48 | struct bio_list pending_bio_list; |
| @@ -57,6 +64,11 @@ struct r10_private_data_s { | |||
| 57 | mempool_t *r10bio_pool; | 64 | mempool_t *r10bio_pool; |
| 58 | mempool_t *r10buf_pool; | 65 | mempool_t *r10buf_pool; |
| 59 | struct page *tmppage; | 66 | struct page *tmppage; |
| 67 | |||
| 68 | /* When taking over an array from a different personality, we store | ||
| 69 | * the new thread here until we fully activate the array. | ||
| 70 | */ | ||
| 71 | struct mdk_thread_s *thread; | ||
| 60 | }; | 72 | }; |
| 61 | 73 | ||
| 62 | typedef struct r10_private_data_s conf_t; | 74 | typedef struct r10_private_data_s conf_t; |
