Lines Matching refs:bhp
35 BH *bhp;
85 bhp = (BH *)((u_int8_t *)pgaddr - SSZA(BH, buf));
88 if (LF_ISSET(DB_MPOOL_CLEAN) && F_ISSET(bhp, BH_DIRTY)) {
91 F_CLR(bhp, BH_DIRTY);
93 if (LF_ISSET(DB_MPOOL_DIRTY) && !F_ISSET(bhp, BH_DIRTY)) {
96 F_SET(bhp, BH_DIRTY);
99 F_SET(bhp, BH_DISCARD);
105 if (bhp->ref == 0) {
107 __memp_fn(dbmfp), (u_long)bhp->pgno);
117 if (--bhp->ref > 0) {
123 SH_TAILQ_REMOVE(&mp->bhq, bhp, q, __bh);
124 if (F_ISSET(bhp, BH_DISCARD))
125 SH_TAILQ_INSERT_HEAD(&mp->bhq, bhp, q, __bh);
127 SH_TAILQ_INSERT_TAIL(&mp->bhq, bhp, q);
137 if (F_ISSET(bhp, BH_WRITE))
138 if (F_ISSET(bhp, BH_DIRTY)) {
140 dbmfp->mfp, bhp, NULL, &wrote) != 0 || !wrote)
143 F_CLR(bhp, BH_WRITE);