summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorshli@kernel.org <shli@kernel.org>2014-12-15 02:57:02 +0100
committerNeilBrown <neilb@suse.de>2015-04-22 00:00:41 +0200
commit46d5b785621ad10a373e292f9101ccfc626466e0 (patch)
tree3ba39d078e74738216221317bad3aca8f65a1519 /drivers/md/raid5.h
parentmd raid0: access mddev->queue (request queue member) conditionally because it... (diff)
downloadlinux-46d5b785621ad10a373e292f9101ccfc626466e0.tar.xz
linux-46d5b785621ad10a373e292f9101ccfc626466e0.zip
raid5: use flex_array for scribble data
Use flex_array for scribble data. Next patch will batch several stripes together, so scribble data should be able to cover several stripes, so this patch also allocates scribble data for stripes across a chunk. Signed-off-by: Shaohua Li <shli@fusionio.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r--drivers/md/raid5.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h
index 983e18a83db1..1d0f241d7d3b 100644
--- a/drivers/md/raid5.h
+++ b/drivers/md/raid5.h
@@ -458,15 +458,11 @@ struct r5conf {
/* per cpu variables */
struct raid5_percpu {
struct page *spare_page; /* Used when checking P/Q in raid6 */
- void *scribble; /* space for constructing buffer
+ struct flex_array *scribble; /* space for constructing buffer
* lists and performing address
* conversions
*/
} __percpu *percpu;
- size_t scribble_len; /* size of scribble region must be
- * associated with conf to handle
- * cpu hotplug while reshaping
- */
#ifdef CONFIG_HOTPLUG_CPU
struct notifier_block cpu_notify;
#endif