From: Bob Liu Date: Tue, 28 Jan 2014 04:28:27 +0000 (+0800) Subject: tmem: drop oneline function client_freeze() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5244^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dd1f5357e97bebc337163120cb618ea75ebc4f13;p=xen.git tmem: drop oneline function client_freeze() 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 --- diff --git a/xen/common/tmem.c b/xen/common/tmem.c index 58e11ecec5..adbb7cd68a 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); }