diff options
author | NeilBrown <neilb@suse.de> | 2010-12-16 12:10:01 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-12-16 12:10:01 +1100 |
commit | cb23f1f4c33d495c05a37ded7acecdeaebdabf14 (patch) | |
tree | ef44ad4804091344644379ed6504a73faafea204 /super-intel.c | |
parent | 78b10e663c35a301406facbda3f5be02973e2ba4 (diff) |
Allow a metadata update to have a linked list of allocated spaces.
Sometimes one metadata update will require allocating several
larger data structures. As 'monitor' cannot allocate, 'manager'
must, so it must be able to attach a list of allocates to the
update, and importantly it must be able to easily free them.
So add a 'space_list' element to metadata updates where each
element on the list starts with a pointer to the next.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c index 68382513..43f75d9e 100644 --- a/super-intel.c +++ b/super-intel.c @@ -5357,6 +5357,7 @@ static struct mdinfo *imsm_activate_spare(struct active_array *a, } mu->space = NULL; + mu->space_list = NULL; mu->len = sizeof(struct imsm_update_activate_spare) * num_spares; mu->next = *updates; u = (struct imsm_update_activate_spare *) mu->buf; |