From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Liu Subject: [PATCH 08/14] tmem: drop oneline function client_freeze() Date: Tue, 28 Jan 2014 12:28:27 +0800 Message-ID: <1390883313-19313-9-git-send-email-bob.liu@oracle.com> References: <1390883313-19313-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.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W80KE-0007sK-CM for xen-devel@lists.xenproject.org; Tue, 28 Jan 2014 04:31:02 +0000 Received: by mail-pa0-f50.google.com with SMTP id kp14so6812121pab.23 for ; Mon, 27 Jan 2014 20:30:59 -0800 (PST) In-Reply-To: <1390883313-19313-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: 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