[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix gnttab setup, which I broke 2 changesets ago.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 081b326162bcabd1c1245e16c14c8427f33b1b5e
# Parent  f9a806ba838a85a4b92efb42e333897bbaf195e2
Fix gnttab setup, which I broke 2 changesets ago.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r f9a806ba838a -r 081b326162bc 
linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c     Wed Sep 28 17:03:20 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c     Wed Sep 28 17:21:09 2005
@@ -454,7 +454,8 @@
 
        for (i = NR_RESERVED_ENTRIES; i < NR_GRANT_ENTRIES; i++)
                gnttab_list[i] = i + 1;
-       gnttab_free_count = NR_GRANT_ENTRIES;
+       gnttab_free_count = NR_GRANT_ENTRIES - NR_RESERVED_ENTRIES;
+       gnttab_free_head  = NR_RESERVED_ENTRIES;
 
 #ifdef CONFIG_PROC_FS
        /*

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.