Lines Matching refs:bhp
58 BH *bhp, *nbhp;
82 for (bhp =
83 SH_TAILQ_FIRST(&mp->bhfq, __bh); bhp != NULL; bhp = nbhp) {
84 nbhp = SH_TAILQ_NEXT(bhp, q, __bh);
86 if (__db_shsizeof(bhp) == len) {
87 SH_TAILQ_REMOVE(&mp->bhfq, bhp, q, __bh);
89 *offsetp = R_OFFSET(dbmp, bhp);
90 *(void **)retp = bhp;
97 for (bhp =
98 SH_TAILQ_FIRST(&mp->bhfq, __bh); bhp != NULL; bhp = nbhp) {
99 nbhp = SH_TAILQ_NEXT(bhp, q, __bh);
101 SH_TAILQ_REMOVE(&mp->bhfq, bhp, q, __bh);
102 __db_shalloc_free(dbmp->addr, bhp);
110 total += fsize = __db_shsizeof(bhp);
117 for (bhp =
118 SH_TAILQ_FIRST(&mp->bhq, __bh); bhp != NULL; bhp = nbhp) {
119 nbhp = SH_TAILQ_NEXT(bhp, q, __bh);
122 if (bhp->ref != 0 || F_ISSET(bhp, BH_LOCKED))
126 mfp = R_ADDR(dbmp, bhp->mf_offset);
139 if (F_ISSET(bhp, BH_DIRTY)) {
140 ++bhp->ref;
142 mfp, bhp, &restart, &wrote)) != 0)
144 --bhp->ref;
151 if (bhp->ref != 0)
168 total += fsize = __db_shsizeof(bhp);
170 __memp_bhfree(dbmp, mfp, bhp, 0);
173 *offsetp = R_OFFSET(dbmp, bhp);
174 *(void **)retp = bhp;
179 __memp_bhfree(dbmp, mfp, bhp, 1);