ia64/xen-unstable

changeset 7122:081b326162bc

Fix gnttab setup, which I broke 2 changesets ago.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Sep 28 18:21:09 2005 +0100 (2005-09-28)
parents f9a806ba838a
children 5e5ae8340956
files linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c	Wed Sep 28 18:03:20 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c	Wed Sep 28 18:21:09 2005 +0100
     1.3 @@ -454,7 +454,8 @@ gnttab_init(void)
     1.4  
     1.5  	for (i = NR_RESERVED_ENTRIES; i < NR_GRANT_ENTRIES; i++)
     1.6  		gnttab_list[i] = i + 1;
     1.7 -	gnttab_free_count = NR_GRANT_ENTRIES;
     1.8 +	gnttab_free_count = NR_GRANT_ENTRIES - NR_RESERVED_ENTRIES;
     1.9 +	gnttab_free_head  = NR_RESERVED_ENTRIES;
    1.10  
    1.11  #ifdef CONFIG_PROC_FS
    1.12  	/*