From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Liu Subject: [PATCH v2 09/11] tmem: cleanup: drop unused function 'domain_fully_allocated' Date: Fri, 8 Nov 2013 09:03:55 +0800 Message-ID: <1383872637-15486-10-git-send-email-bob.liu@oracle.com> References: <1383872637-15486-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VeaWN-0005dz-5w for xen-devel@lists.xenproject.org; Fri, 08 Nov 2013 01:05:59 +0000 Received: by mail-pd0-f173.google.com with SMTP id r10so1385097pdi.18 for ; Thu, 07 Nov 2013 17:05:55 -0800 (PST) In-Reply-To: <1383872637-15486-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 0b64309..9941bf2 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