From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: [PATCH v2.1 08/15] tmem: drop oneline function client_freeze() Date: Wed, 9 Apr 2014 09:26:12 -0400 Message-ID: <1397049979-3479-9-git-send-email-konrad.wilk@oracle.com> References: <1397049979-3479-1-git-send-email-konrad.wilk@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 1WXsWM-0000sq-On for xen-devel@lists.xenproject.org; Wed, 09 Apr 2014 13:26:30 +0000 In-Reply-To: <1397049979-3479-1-git-send-email-konrad.wilk@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, jbeulich@suse.com Cc: Bob Liu , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org From: Bob Liu Function client_freeze() only set client->frozen = freeze, the caller can do this work directly. Signed-off-by: Bob Liu Signed-off-by: Konrad Rzeszutek Wilk --- xen/common/tmem.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xen/common/tmem.c b/xen/common/tmem.c index 58e11ec..adbb7cd 100644 --- a/xen/common/tmem.c +++ b/xen/common/tmem.c @@ -1236,11 +1236,6 @@ static bool_t client_over_quota(struct client *client) ((total*100L) / client->weight) ); } -static void client_freeze(struct client *client, int freeze) -{ - client->frozen = freeze; -} - /************ MEMORY REVOCATION ROUTINES *******************************/ static bool_t tmem_try_to_evict_pgp(struct tmem_page_descriptor *pgp, bool_t *hold_pool_rwlock) @@ -1993,14 +1988,14 @@ static int tmemc_freeze_pools(domid_t cli_id, int arg) if ( cli_id == TMEM_CLI_ID_NULL ) { list_for_each_entry(client,&global_client_list,client_list) - client_freeze(client,freeze); + client->frozen = freeze; tmem_client_info("tmem: all pools %s for all %ss\n", s, tmem_client_str); } else { if ( (client = tmem_client_from_cli_id(cli_id)) == NULL) return -1; - client_freeze(client,freeze); + client->frozen = freeze; tmem_client_info("tmem: all pools %s for %s=%d\n", s, tmem_cli_id_str, cli_id); } -- 1.8.5.3