OSDN Git Service

migratiom: Remove max_item_age parameter
authorJuan Quintela <quintela@redhat.com>
Fri, 6 Oct 2017 16:07:42 +0000 (18:07 +0200)
committerJuan Quintela <quintela@redhat.com>
Mon, 23 Oct 2017 16:03:22 +0000 (18:03 +0200)
It was not used at all since commit:

27af7d6ea5015e5ef1f7985eab94a8a218267a2b

which replaced its use by the dirty sync count.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
migration/page_cache.c

index ba984c4..381e555 100644 (file)
@@ -41,7 +41,6 @@ struct PageCache {
     CacheItem *page_cache;
     unsigned int page_size;
     int64_t max_num_items;
-    uint64_t max_item_age;
     int64_t num_items;
 };
 
@@ -69,7 +68,6 @@ PageCache *cache_init(int64_t num_pages, unsigned int page_size)
     }
     cache->page_size = page_size;
     cache->num_items = 0;
-    cache->max_item_age = 0;
     cache->max_num_items = num_pages;
 
     DPRINTF("Setting cache buckets to %" PRId64 "\n", cache->max_num_items);