zfs: fix up after the removal of PG_CACHED pages in r308691

PR:		214629
Reported by:	mshirk@daemon-security.com
Reviewed by:	alc
Tested by:	Shawn Webb <shawn.webb@hardenedbsd.org>
X-MFC with:	308691
This commit is contained in:
Andriy Gapon 2016-11-19 08:12:57 +00:00
parent 0ae37b2f01
commit 2ec31e84cc

View File

@ -426,8 +426,8 @@ page_busy(vnode_t *vp, int64_t start, int64_t off, int64_t nbytes)
continue;
}
vm_page_sbusy(pp);
} else {
ASSERT(pp != NULL && !pp->valid);
} else if (pp != NULL) {
ASSERT(!pp->valid);
pp = NULL;
}