Lines Matching refs:bhp
38 BH *bhp, **bharray;
131 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
132 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh))
133 if (F_ISSET(bhp, BH_DIRTY) || bhp->ref != 0) {
134 F_SET(bhp, BH_WRITE);
138 mfp = R_ADDR(dbmp, bhp->mf_offset);
157 if (bhp->ref == 0) {
158 ++bhp->ref;
159 bharray[ar_cnt] = bhp;
166 if (F_ISSET(bhp, BH_WRITE))
167 F_CLR(bhp, BH_WRITE);
237 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
238 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh))
239 F_CLR(bhp, BH_WRITE);
318 BH *bhp, **bharray;
351 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
352 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh)) {
353 if (!F_ISSET(bhp, BH_DIRTY) || bhp->mf_offset != mf_offset)
355 if (bhp->ref != 0 || F_ISSET(bhp, BH_LOCKED)) {
360 ++bhp->ref;
361 bharray[ar_cnt] = bhp;
446 BH *bhp;
482 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
483 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh)) {
484 if (bhp->ref != 0 ||
485 !F_ISSET(bhp, BH_DIRTY) || F_ISSET(bhp, BH_LOCKED))
488 mfp = R_ADDR(dbmp, bhp->mf_offset);
497 pgno = bhp->pgno;
498 if ((ret = __memp_bhwrite(dbmp, mfp, bhp, NULL, &wrote)) != 0)