diff options
author | NeilBrown <neilb@suse.de> | 2010-12-16 02:10:01 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-12-16 02:10:01 +0100 |
commit | cb23f1f4c33d495c05a37ded7acecdeaebdabf14 (patch) | |
tree | ef44ad4804091344644379ed6504a73faafea204 /util.c | |
parent | imsm: Prepare reshape_update in mdadm (diff) | |
download | mdadm-cb23f1f4c33d495c05a37ded7acecdeaebdabf14.tar.xz mdadm-cb23f1f4c33d495c05a37ded7acecdeaebdabf14.zip |
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 'util.c')
-rw-r--r-- | util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1890,6 +1890,7 @@ void append_metadata_update(struct supertype *st, void *buf, int len) mu->buf = buf; mu->len = len; mu->space = NULL; + mu->space_list = NULL; mu->next = NULL; *st->update_tail = mu; st->update_tail = &mu->next; |