Lines Matching refs:bharray
38 BH *bhp, **bharray; local
66 if ((ret = __os_malloc(nalloc * sizeof(BH *), NULL, &bharray)) != 0)
159 bharray[ar_cnt] = bhp;
178 qsort(bharray, ar_cnt, sizeof(BH *), __bhcmp);
191 if (bharray[next]->ref > 1) {
192 --bharray[next]->ref;
197 mfp = R_ADDR(dbmp, bharray[next]->mf_offset);
198 ret = __memp_bhwrite(dbmp, mfp, bharray[next], NULL, &wrote);
201 --bharray[next]->ref;
213 (u_long)bharray[next]->pgno);
218 --bharray[next]->ref;
242 __os_free(bharray, nalloc * sizeof(BH *));
318 BH *bhp, **bharray; local
341 if ((ret = __os_malloc(nalloc * sizeof(BH *), NULL, &bharray)) != 0)
361 bharray[ar_cnt] = bhp;
380 qsort(bharray, ar_cnt, sizeof(BH *), __bhcmp);
392 if (bharray[next]->ref > 1) {
395 --bharray[next]->ref;
400 ret = __memp_pgwrite(dbmfp, bharray[next], NULL, &wrote);
403 --bharray[next]->ref;
408 --bharray[next]->ref;
422 __os_free(bharray, nalloc * sizeof(BH *));