Lines Matching refs:loan_count
61 * loans are tracked by pg->loan_count. an O->A page will have both
80 * locking: to read pg->loan_count either the owner or pg->interlock
81 * must be locked. to modify pg->loan_count, both the owner of the page
422 if (pg->loan_count == 0) {
426 pg->loan_count++;
427 KASSERT(pg->loan_count > 0); /* detect wrap-around */
471 if (pg->loan_count == 0) {
475 pg->loan_count++;
476 KASSERT(pg->loan_count > 0); /* detect wrap-around */
768 if (pg->loan_count == 0) {
772 pg->loan_count++;
773 KASSERT(pg->loan_count > 0); /* detect wrap-around */
863 pg->loan_count++;
864 KASSERT(pg->loan_count > 0); /* detect wrap-around */
904 pg->loan_count++;
905 KASSERT(pg->loan_count > 0); /* detect wrap-around */
985 * (ie. decrement loan_count again and set PG_ANON).
991 KASSERT(pg->loan_count > 0);
992 pg->loan_count--;
995 KASSERT(pg->loan_count > 0);
996 pg->loan_count--;
1000 if (pg->loan_count == 0 && pg->uobject == NULL &&
1168 KASSERT(anon->an_page->loan_count > 0);
1202 oldpg->loan_count--;