Mercurial > illumos > git > illumos-gate
changeset 19409:d002a47802a8
12193 zonestatd: Wrong indentation in zsd_usage_cache_update()
Reviewed by: Matthias Scheler <mscheler@tintri.com>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
author | Marcel Telka <marcel@telka.sk> |
---|---|
date | Wed, 15 Jan 2020 08:01:16 +0100 |
parents | 8b9ac5d11dc3 |
children | 3f37891a16f2 |
files | usr/src/cmd/zonestat/zonestatd/zonestatd.c |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/zonestat/zonestatd/zonestatd.c Fri Nov 22 15:23:27 2019 +0000 +++ b/usr/src/cmd/zonestat/zonestatd/zonestatd.c Wed Jan 15 08:01:16 2020 +0100 @@ -3875,18 +3875,18 @@ /* Update the current cache pointer */ (void) mutex_lock(&g_usage_cache_lock); - old = g_usage_cache; - cache->zsuc_ref = 1; - cache->zsuc_gen = g_gen_next; - usage->zsu_gen = g_gen_next; - usage->zsu_size = size; - g_usage_cache = cache; - if (old != NULL) { - old->zsuc_ref--; - if (old->zsuc_ref == 0) - free(old); - } - g_gen_next++; + old = g_usage_cache; + cache->zsuc_ref = 1; + cache->zsuc_gen = g_gen_next; + usage->zsu_gen = g_gen_next; + usage->zsu_size = size; + g_usage_cache = cache; + if (old != NULL) { + old->zsuc_ref--; + if (old->zsuc_ref == 0) + free(old); + } + g_gen_next++; /* Wake up any clients that are waiting for this calculation */ if (g_usage_cache_kickers > 0) { (void) cond_broadcast(&g_usage_cache_wait);