Project

General

Profile

Actions

Bug #12193

closed

zonestatd: Wrong indentation in zsd_usage_cache_update()

Added by Marcel Telka over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Lines 3878-3889 are not indented properly here in usr/src/cmd/zonestat/zonestatd/zonestatd.c:

3876    /* Update the current cache pointer */
3877    (void) mutex_lock(&g_usage_cache_lock);
3878        old = g_usage_cache;
3879        cache->zsuc_ref = 1;
3880        cache->zsuc_gen = g_gen_next;
3881        usage->zsu_gen = g_gen_next;
3882        usage->zsu_size = size;
3883        g_usage_cache = cache;
3884        if (old != NULL) {
3885            old->zsuc_ref--;
3886            if (old->zsuc_ref == 0)
3887                free(old);
3888        }
3889        g_gen_next++;
3890    /* Wake up any clients that are waiting for this calculation */
3891    if (g_usage_cache_kickers > 0) {


Related issues

Related to illumos gate - Bug #12201: Enable smatch for zonestat and zonestatdClosedMarcel Telka

Actions
Actions

Also available in: Atom PDF