summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-12-16 02:10:01 +0100
committerNeilBrown <neilb@suse.de>2010-12-16 02:10:01 +0100
commitcb23f1f4c33d495c05a37ded7acecdeaebdabf14 (patch)
treeef44ad4804091344644379ed6504a73faafea204 /util.c
parentimsm: Prepare reshape_update in mdadm (diff)
downloadmdadm-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index f57cd9ee..7544ce17 100644
--- a/util.c
+++ b/util.c
@@ -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;