From 31df97cdab40545e2d854a9c4ce2fece29e3951b Mon Sep 17 00:00:00 2001 From: Don Brady Date: Tue, 7 Nov 2017 11:42:15 -0700 Subject: [PATCH] Build regression in c89 cleanups Fixed build regression in non-debug builds from recent cleanups of c89 workarounds. Reviewed-by: Tim Chase Reviewed-by: Brian Behlendorf Signed-off-by: Don Brady Closes #6832 --- module/zfs/arc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 9f2441a62530..35f24d5d8862 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -5663,14 +5663,15 @@ arc_read_done(zio_t *zio) * read. */ if (HDR_IN_HASH_TABLE(hdr)) { + arc_buf_hdr_t *found; + ASSERT3U(hdr->b_birth, ==, BP_PHYSICAL_BIRTH(zio->io_bp)); ASSERT3U(hdr->b_dva.dva_word[0], ==, BP_IDENTITY(zio->io_bp)->dva_word[0]); ASSERT3U(hdr->b_dva.dva_word[1], ==, BP_IDENTITY(zio->io_bp)->dva_word[1]); - arc_buf_hdr_t *found = buf_hash_find(hdr->b_spa, zio->io_bp, - &hash_lock); + found = buf_hash_find(hdr->b_spa, zio->io_bp, &hash_lock); ASSERT((found == hdr && DVA_EQUAL(&hdr->b_dva, BP_IDENTITY(zio->io_bp))) ||