From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpzYw-0000AY-KL for qemu-devel@nongnu.org; Wed, 06 May 2015 09:40:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpzYq-0001R7-Fa for qemu-devel@nongnu.org; Wed, 06 May 2015 09:40:34 -0400 From: Alberto Garcia Date: Wed, 6 May 2015 16:39:24 +0300 Message-Id: Subject: [Qemu-devel] [PATCH v2 0/7] qcow2 L2/refcount cache improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Alberto Garcia , qemu-block@nongnu.org, Stefan Hajnoczi New version of the qcow2 cache patches: v2: - Don't do pointer arithmetic on void * - Rename table_addr() to qcow2_cache_get_table_addr() - Add qcow2_cache_get_table_idx() - Cast cache size to size_t to prevent overflows - Make qcow2_cache_put() a void function - Don't store the cluster size in the cache, get it from the BDS instead v1: https://lists.nongnu.org/archive/html/qemu-devel/2015-04/msg04355.html Regards, Berto Alberto Garcia (7): qcow2: use one single memory block for the L2/refcount cache tables qcow2: simplify qcow2_cache_put() and qcow2_cache_entry_mark_dirty() qcow2: use an LRU algorithm to replace entries from the L2 cache qcow2: remove qcow2_cache_find_entry_to_replace() qcow2: use a hash to look for entries in the L2 cache qcow2: make qcow2_cache_put() a void function qcow2: style fixes in qcow2-cache.c block/qcow2-cache.c | 169 ++++++++++++++++++++++--------------------------- block/qcow2-cluster.c | 62 +++++------------- block/qcow2-refcount.c | 37 +++-------- block/qcow2.h | 5 +- 4 files changed, 104 insertions(+), 169 deletions(-) -- 2.1.4