summaryrefslogtreecommitdiffstats
path: root/sys/boot/zfs
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2015-06-05 17:02:21 +0000
committeravg <avg@FreeBSD.org>2015-06-05 17:02:21 +0000
commit8ffe62b536fec577ad51723de334650a7837f144 (patch)
treeb1bfc825af9c09977948850acbbf79f95f24d751 /sys/boot/zfs
parent9b1ca91264d61d0ecc1ed8d9f67088c399292907 (diff)
downloadFreeBSD-src-8ffe62b536fec577ad51723de334650a7837f144.zip
FreeBSD-src-8ffe62b536fec577ad51723de334650a7837f144.tar.gz
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
Diffstat (limited to 'sys/boot/zfs')
-rw-r--r--sys/boot/zfs/zfsimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/zfs/zfsimpl.c b/sys/boot/zfs/zfsimpl.c
index d9d7fd6..d889047 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;
}
OpenPOWER on IntegriCloud