Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
arc.c:3470:47: error: ‘buf’ undeclared (first use in this function)
   cmn_err(CE_PANIC, "invalid arc state 0x%p", buf->b_state);

change introduced with "Illumos 5369 - arc flags should be an enum"
  • Loading branch information
kernelOfTruth committed Mar 16, 2015
1 parent ce27dbc commit c76ca73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3455,7 +3455,7 @@ arc_access(arc_buf_hdr_t *hdr, kmutex_t *hash_lock)
DTRACE_PROBE1(new_state__mfu, arc_buf_hdr_t *, hdr);
arc_change_state(arc_mfu, hdr, hash_lock);
} else {
cmn_err(CE_PANIC, "invalid arc state 0x%p", buf->b_state);
cmn_err(CE_PANIC, "invalid arc state 0x%p", hdr->b_state);
}
}

Expand Down

0 comments on commit c76ca73

Please sign in to comment.