Print this page
patch as-lock-macro-simplification
*** 645,655 ****
struct cred *cr, caller_context_t *ct)
{
page_t *pp;
ASSERT(len == PAGESIZE);
! ASSERT(AS_READ_HELD(seg->s_as, &seg->s_as->a_lock));
/*
* If the page is in the hash, then we successfully claimed this
* page earlier, so return it to the caller.
*/
--- 645,655 ----
struct cred *cr, caller_context_t *ct)
{
page_t *pp;
ASSERT(len == PAGESIZE);
! ASSERT(AS_READ_HELD(seg->s_as));
/*
* If the page is in the hash, then we successfully claimed this
* page earlier, so return it to the caller.
*/