Allocate metadata before extra pagedir memory.
commit1958c9aa95988d3561067ecd1f5ce179133f3d68
authorNigel Cunningham <nigel@suspend2.net>
Mon, 7 May 2007 03:39:27 +0000 (7 13:39 +1000)
committerNigel Cunningham <nigel@suspend2.net>
Mon, 7 May 2007 03:42:00 +0000 (7 13:42 +1000)
tree0001f1abaae7c6a77118b888189eb8801427e321
parent02408e50cf0c96172cfdc294400e9cae3db92802
Allocate metadata before extra pagedir memory.

Allocate the metadata before the extra pagedir memory so that we don't
ever succeed in allocating memory, but then have to free it because we
can't get the metadata to store the info. This way, the larger chunk will
be broken up to satisfy the metadata malloc first.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
kernel/power/prepare_image.c