From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Liu Subject: [PATCH 08/14] tmem: drop oneline function client_freeze() Date: Wed, 18 Dec 2013 14:52:35 +0800 Message-ID: <1387349561-27923-9-git-send-email-bob.liu@oracle.com> References: <1387349561-27923-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 1VtB2t-0006um-1h for xen-devel@lists.xenproject.org; Wed, 18 Dec 2013 06:55:51 +0000 Received: by mail-pa0-f46.google.com with SMTP id kl14so5577109pab.33 for ; Tue, 17 Dec 2013 22:55:37 -0800 (PST) In-Reply-To: <1387349561-27923-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, keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org Function client_freeze() only set client->frozen = freeze, the caller can do this work directly. Signed-off-by: Bob Liu --- 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 91096eb..70c80ab 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) @@ -1988,14 +1983,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.7.10.4