From 649a80dc4c4a0d77eb13f00b76da7e9f84ead979 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Fri, 5 Jun 2015 17:02:21 +0000 Subject: [PATCH] dnode_read: fixup r284025, BP_IS_HOLE macro expects a pointer PR: 199804 Reported by: sbruno Pointyhat to: avg MFC after: 10 days X-MFC with: r284025 --- sys/boot/zfs/zfsimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/zfs/zfsimpl.c b/sys/boot/zfs/zfsimpl.c index d9d7fd6fbce4..d889047ffbd5 100644 --- a/sys/boot/zfs/zfsimpl.c +++ b/sys/boot/zfs/zfsimpl.c @@ -1255,7 +1255,7 @@ dnode_read(const spa_t *spa, const dnode_phys_t *dnode, off_t offset, void *buf, ibn = bn >> ((nlevels - i - 1) * ibshift); ibn &= ((1 << ibshift) - 1); bp = indbp[ibn]; - if (BP_IS_HOLE(bp)) { + if (BP_IS_HOLE(&bp)) { memset(dnode_cache_buf, 0, bsize); break; }