From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2WKS-0006P3-JH for qemu-devel@nongnu.org; Thu, 12 Oct 2017 01:46:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2WKP-0004n7-DD for qemu-devel@nongnu.org; Thu, 12 Oct 2017 01:46:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51780) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2WKP-0004me-6y for qemu-devel@nongnu.org; Thu, 12 Oct 2017 01:46:41 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 409C05D68D for ; Thu, 12 Oct 2017 05:46:40 +0000 (UTC) Date: Thu, 12 Oct 2017 13:46:32 +0800 From: Peter Xu Message-ID: <20171012054632.GC30901@pxdev.xzpeter.org> References: <20171010181542.24168-1-quintela@redhat.com> <20171010181542.24168-3-quintela@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20171010181542.24168-3-quintela@redhat.com> Subject: Re: [Qemu-devel] [PATCH 02/10] migratiom: Remove max_item_age parameter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org, dgilbert@redhat.com, lvivier@redhat.com On Tue, Oct 10, 2017 at 08:15:34PM +0200, Juan Quintela wrote: > It was not used at all since commit: > > 27af7d6ea5015e5ef1f7985eab94a8a218267a2b > > which replaced its use by the dirty sync count. > > Signed-off-by: Juan Quintela Reviewed-by: Peter Xu > --- > migration/page_cache.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/migration/page_cache.c b/migration/page_cache.c > index ba984c4858..381e555ddb 100644 > --- a/migration/page_cache.c > +++ b/migration/page_cache.c > @@ -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); > -- > 2.13.6 > -- Peter Xu