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
This commit is contained in:
Andriy Gapon 2015-06-05 17:02:21 +00:00
parent 8c8613a14f
commit 649a80dc4c

View File

@ -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;
}