]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
gnttab: Remove unused per-domain map_count field
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 19 May 2009 22:30:32 +0000 (23:30 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 19 May 2009 22:30:32 +0000 (23:30 +0100)
Signed-off-by: Steven Smith <steven.smith@eu.citrix.com>
xen/common/grant_table.c
xen/include/xen/grant_table.h

index 1c32772a88b50547fd3438029eb473bd10f13399..613caed877f900bb01d00cb50ad4a21ecc5c2d6d 100644 (file)
@@ -119,7 +119,6 @@ __get_maptrack_handle(
     if ( unlikely((h = t->maptrack_head) == (t->maptrack_limit - 1)) )
         return -1;
     t->maptrack_head = maptrack_entry(t, h).ref;
-    t->map_count++;
     return h;
 }
 
@@ -129,7 +128,6 @@ put_maptrack_handle(
 {
     maptrack_entry(t, handle).ref = t->maptrack_head;
     t->maptrack_head = handle;
-    t->map_count--;
 }
 
 static inline int
index d0e8040a19063384aa721c5e5ccf42e881122a3e..096af9bb4cad179d8d9b20077acd81cd56d7f3f3 100644 (file)
@@ -91,7 +91,6 @@ struct grant_table {
     struct grant_mapping **maptrack;
     unsigned int          maptrack_head;
     unsigned int          maptrack_limit;
-    unsigned int          map_count;
     /* Lock protecting updates to active and shared grant tables. */
     spinlock_t            lock;
 };