ia64/xen-unstable
changeset 10446:d107bfd5a4ae
[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>
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>
author | awilliam@xenbuild.aw |
---|---|
date | Fri Jun 23 15:12:10 2006 -0600 (2006-06-23) |
parents | cf4a70ab3f59 |
children | 056622b0f8f7 |
files | linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c Fri Jun 23 10:04:12 2006 -0600 1.2 +++ b/linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c Fri Jun 23 15:12:10 2006 -0600 1.3 @@ -275,6 +275,9 @@ void 1.4 struct xen_memory_reservation reservation; 1.5 unsigned long i; 1.6 1.7 + if (!test_bit(start_gpfn, contiguous_bitmap)) 1.8 + return; 1.9 + 1.10 gpfns = kmalloc(sizeof(gpfns[0]) * num_gpfn, 1.11 GFP_KERNEL | __GFP_NOFAIL); 1.12 for (i = 0; i < num_gpfn; i++) {