From c76ca7327270ea5f12d4892b87107b7bbbbe4105 Mon Sep 17 00:00:00 2001 From: kernelOfTruth Date: Mon, 16 Mar 2015 04:06:45 +0100 Subject: [PATCH] fix compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index ff55b0233aaa..ca49d1efe810 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -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); } }