diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-05-26 07:06:04 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-26 07:06:04 -0700 |
| commit | 89670a77a16fa2e5c917d481344f5ead324eedc8 (patch) | |
| tree | a96ca269e06097cc4ff2fa00bc0711acf2b21c36 /include/linux/raid | |
| parent | 31458043214802d7bb86552a420f2a7e3c81e1b7 (diff) | |
[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.
Diffstat (limited to 'include/linux/raid')
| -rw-r--r-- | include/linux/raid/linear.h | 2 |
1 files changed, 1 insertions, 1 deletions
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]; }; |
