diff options
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r-- | drivers/md/raid5.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index 0f86f5e36724..36eaed5dfd6e 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h | |||
@@ -388,7 +388,7 @@ struct raid5_private_data { | |||
388 | * two caches. | 388 | * two caches. |
389 | */ | 389 | */ |
390 | int active_name; | 390 | int active_name; |
391 | char cache_name[2][20]; | 391 | char cache_name[2][32]; |
392 | struct kmem_cache *slab_cache; /* for allocating stripes */ | 392 | struct kmem_cache *slab_cache; /* for allocating stripes */ |
393 | 393 | ||
394 | int seq_flush, seq_write; | 394 | int seq_flush, seq_write; |
@@ -398,6 +398,9 @@ struct raid5_private_data { | |||
398 | * (fresh device added). | 398 | * (fresh device added). |
399 | * Cleared when a sync completes. | 399 | * Cleared when a sync completes. |
400 | */ | 400 | */ |
401 | |||
402 | struct plug_handle plug; | ||
403 | |||
401 | /* per cpu variables */ | 404 | /* per cpu variables */ |
402 | struct raid5_percpu { | 405 | struct raid5_percpu { |
403 | struct page *spare_page; /* Used when checking P/Q in raid6 */ | 406 | struct page *spare_page; /* Used when checking P/Q in raid6 */ |
@@ -497,4 +500,8 @@ static inline int algorithm_is_DDF(int layout) | |||
497 | { | 500 | { |
498 | return layout >= 8 && layout <= 10; | 501 | return layout >= 8 && layout <= 10; |
499 | } | 502 | } |
503 | |||
504 | extern int md_raid5_congested(mddev_t *mddev, int bits); | ||
505 | extern void md_raid5_unplug_device(raid5_conf_t *conf); | ||
506 | extern int raid5_set_cache_size(mddev_t *mddev, int size); | ||
500 | #endif | 507 | #endif |