diff options
author | Don Brady <[email protected]> | 2017-11-07 11:42:15 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-11-07 10:42:15 -0800 |
commit | 31df97cdab40545e2d854a9c4ce2fece29e3951b (patch) | |
tree | 9374b12e850c6276c2abf743fc787b785d1a94c0 | |
parent | b58b73ce74b032184a089f7084c638f71453bdfa (diff) |
Build regression in c89 cleanups
Fixed build regression in non-debug builds from recent cleanups of
c89 workarounds.
Reviewed-by: Tim Chase <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Don Brady <[email protected]>
Closes #6832
-rw-r--r-- | module/zfs/arc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 9f2441a62..35f24d5d8 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))) || |