summaryrefslogtreecommitdiffstats
path: root/module/zfs/arc.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 09:52:41 -0700
committerBrian Behlendorf <[email protected]>2010-08-27 15:34:03 -0700
commit2598c0012dc33496539ce893a0af601c66cbb7e2 (patch)
treec0523910cfa96a281a85063b113fc5f2bb05e7a2 /module/zfs/arc.c
parent0bc8fd7884fc603eb7646c43b1fc0b18e37e7d62 (diff)
Fix gcc missing braces warnings
Resolve compiler warnings concerning missing braces. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r--module/zfs/arc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index 6b57f51ff..d6d648c65 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -1745,13 +1745,14 @@ static void
arc_evict_ghost(arc_state_t *state, uint64_t spa, int64_t bytes)
{
arc_buf_hdr_t *ab, *ab_prev;
- arc_buf_hdr_t marker = { 0 };
+ arc_buf_hdr_t marker;
list_t *list = &state->arcs_list[ARC_BUFC_DATA];
kmutex_t *hash_lock;
uint64_t bytes_deleted = 0;
uint64_t bufs_skipped = 0;
ASSERT(GHOST_STATE(state));
+ bzero(&marker, sizeof(marker));
top:
mutex_enter(&state->arcs_mtx);
for (ab = list_tail(list); ab; ab = ab_prev) {