From 89670a77a16fa2e5c917d481344f5ead324eedc8 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 26 May 2003 07:06:04 -0700 Subject: [PATCH] md: Remove dependance on MD_SB_DISKS in linear personality Linear uses one array sized by MD_SB_DISKS inside a structure. We move it to the end of the structure, declare it as size 0, and arrange for approprate extra space to be allocated on structure allocation. --- include/linux/raid/linear.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux/raid') diff --git a/include/linux/raid/linear.h b/include/linux/raid/linear.h index 44c79eb016ac..70afc1dc8b43 100644 --- a/include/linux/raid/linear.h +++ b/include/linux/raid/linear.h @@ -19,9 +19,9 @@ struct linear_hash struct linear_private_data { struct linear_hash *hash_table; - dev_info_t disks[MD_SB_DISKS]; dev_info_t *smallest; int nr_zones; + dev_info_t disks[0]; }; -- cgit v1.2.3