[IA64] memory exchange: ia64 counter part of cs 10353 xen-unstable.hg

IA64 counter part of the change set
10353:bd1a0b2bb2d4596227951ad6d36cb4fcc2d00a8e of xen-unstable.hg
Only destroy a machine-contiguous memory region if it really is contiguous.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
awilliam@xenbuild.aw committed 2006-06-23 15:12:10 -06:00
1 parent b95bd4c873
commit 0495f6eb85
1 file changed
+3
@@ -275,6 +275,9 @@ __xen_destroy_contiguous_region(unsigned long vstart, unsigned int order)
struct xen_memory_reservation reservation;
unsigned long i;
if (!test_bit(start_gpfn, contiguous_bitmap))
return;
gpfns = kmalloc(sizeof(gpfns[0]) * num_gpfn,
GFP_KERNEL | __GFP_NOFAIL);
for (i = 0; i < num_gpfn; i++) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.