From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Liu Subject: [PATCH v4 14/15] tmem: cleanup: rm unused tmem_freeze_all() Date: Thu, 12 Dec 2013 19:05:14 +0800 Message-ID: <1386846315-13299-15-git-send-email-bob.liu@oracle.com> References: <1386846315-13299-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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vr47D-0004RZ-20 for xen-devel@lists.xenproject.org; Thu, 12 Dec 2013 11:07:35 +0000 Received: by mail-pb0-f49.google.com with SMTP id jt11so326532pbb.8 for ; Thu, 12 Dec 2013 03:07:31 -0800 (PST) In-Reply-To: <1386846315-13299-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: james.harper@bendigoit.com.au, ian.campbell@citrix.com, andrew.cooper3@citrix.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org Nobody uses tmem_freeze_all() so remove it. Signed-off-by: Bob Liu --- xen/common/tmem.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/xen/common/tmem.c b/xen/common/tmem.c index 9269ebf..fc75229 100644 --- a/xen/common/tmem.c +++ b/xen/common/tmem.c @@ -2755,19 +2755,6 @@ void tmem_destroy(void *v) write_unlock(&tmem_rwlock); } -/* freezing all pools guarantees that no additional memory will be consumed */ -void tmem_freeze_all(unsigned char key) -{ - static int freeze = 0; - - write_lock(&tmem_rwlock); - - freeze = !freeze; - tmemc_freeze_pools(TMEM_CLI_ID_NULL,freeze); - - write_unlock(&tmem_rwlock); -} - #define MAX_EVICTS 10 /* should be variable or set via TMEMC_ ?? */ void *tmem_relinquish_pages(unsigned int order, unsigned int memflags) { -- 1.7.10.4