summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Telka <marcel@telka.sk>2020-01-15 08:01:16 +0100
committerDan McDonald <danmcd@joyent.com>2020-01-24 11:30:58 -0500
commit8c4f148689a42031a168cdc4c81062735db025e0 (patch)
treedb3877b5ff3226089a340484aae7fd37915ba5bb
parent1dd4766bd0d7ab56961ce97c9c39de612ae2e7d1 (diff)
downloadillumos-gate-8c4f148689a42031a168cdc4c81062735db025e0.tar.gz
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>
-rw-r--r--usr/src/cmd/zonestat/zonestatd/zonestatd.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr/src/cmd/zonestat/zonestatd/zonestatd.c b/usr/src/cmd/zonestat/zonestatd/zonestatd.c
index fb7759f6e7..026d188fda 100644
--- a/usr/src/cmd/zonestat/zonestatd/zonestatd.c
+++ b/usr/src/cmd/zonestat/zonestatd/zonestatd.c
@@ -3875,18 +3875,18 @@ zsd_usage_cache_update(zsd_ctl_t *ctl)
/* 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);