From: Bob Liu Subject: [PATCH 10/14] tmem: cleanup: drop global_pool_list Date: Tue, 28 Jan 2014 12:28:29 +0800 Message-ID: <1390883313-19313-11-git-send-email-bob.liu@oracle.com> References: <1390883313-19313-1-git-send-email-bob.liu@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W80Kl-000885-SY for xen-devel@lists.xenproject.org; Tue, 28 Jan 2014 04:31:36 +0000 Received: by mail-pd0-f170.google.com with SMTP id p10so6600032pdj.15 for ; Mon, 27 Jan 2014 20:31:32 -0800 (PST) In-Reply-To: <1390883313-19313-1-git-send-email-bob.liu@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org No need to maintain a global pool list, nobody use it. Signed-off-by: Bob Liu --- xen/common/tmem.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xen/common/tmem.c b/xen/common/tmem.c index 0febae1..72c3838 100644 --- a/xen/common/tmem.c +++ b/xen/common/tmem.c @@ -96,7 +96,6 @@ struct tmem_pool { bool_t shared; bool_t persistent; bool_t is_dying; - struct list_head pool_list; struct client *client; uint64_t uuid[2]; /* 0 for private, non-zero for shared */ uint32_t pool_id; @@ -199,7 +198,6 @@ rwlock_t pcd_tree_rwlocks[256]; /* poor man's concurrency for now */ static LIST_HEAD(global_ephemeral_page_list); /* all pages in ephemeral pools */ static LIST_HEAD(global_client_list); -static LIST_HEAD(global_pool_list); static struct tmem_pool *global_shared_pools[MAX_GLOBAL_SHARED_POOLS] = { 0 }; static bool_t global_shared_auth = 0; @@ -1012,7 +1010,6 @@ static struct tmem_pool * pool_alloc(void) return NULL; for (i = 0; i < OBJ_HASH_BUCKETS; i++) pool->obj_rb_root[i] = RB_ROOT; - INIT_LIST_HEAD(&pool->pool_list); INIT_LIST_HEAD(&pool->persistent_page_list); rwlock_init(&pool->pool_rwlock); return pool; @@ -1021,7 +1018,6 @@ static struct tmem_pool * pool_alloc(void) static void pool_free(struct tmem_pool *pool) { pool->client = NULL; - list_del(&pool->pool_list); xfree(pool); } @@ -1952,7 +1948,6 @@ static int do_tmem_new_pool(domid_t this_cli_id, } } client->pools[d_poolid] = pool; - list_add_tail(&pool->pool_list, &global_pool_list); pool->pool_id = d_poolid; pool->persistent = persistent; pool->uuid[0] = uuid_lo; pool->uuid[1] = uuid_hi; -- 1.7.10.4