From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Liu Subject: [PATCH 09/11] tmem: cleanup: drop unused function 'domain_fully_allocated' Date: Mon, 4 Nov 2013 20:40:52 +0800 Message-ID: <1383568854-30521-10-git-send-email-bob.liu@oracle.com> References: <1383568854-30521-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 1VdJWz-0003Go-79 for xen-devel@lists.xenproject.org; Mon, 04 Nov 2013 12:45:21 +0000 Received: by mail-pb0-f54.google.com with SMTP id ro12so1601089pbb.27 for ; Mon, 04 Nov 2013 04:45:17 -0800 (PST) In-Reply-To: <1383568854-30521-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: Bob Liu , keir@xen.org, ian.campbell@citrix.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org Nobody uses this function. Signed-off-by: Bob Liu --- xen/include/xen/tmem_xen.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xen/include/xen/tmem_xen.h b/xen/include/xen/tmem_xen.h index e2c03d2..3a2ced8 100644 --- a/xen/include/xen/tmem_xen.h +++ b/xen/include/xen/tmem_xen.h @@ -110,14 +110,6 @@ static inline void tmem_page_list_put(struct page_info *pi) /* * Memory allocation for persistent data */ - -static inline bool_t domain_fully_allocated(struct domain *d) -{ - return ( d->tot_pages >= d->max_pages ); -} -#define tmem_client_memory_fully_allocated(_pool) \ - domain_fully_allocated(_pool->client->domain) - static inline void *tmem_alloc_subpage_thispool(struct xmem_pool *cmem_mempool, size_t size, size_t align) { -- 1.7.10.4