Lines Matching defs:mp
23 #include "mp.h"
40 MPOOL *mp;
47 mp = dbmp->mp;
63 nalloc = mp->stat.st_page_dirty + mp->stat.st_page_dirty / 2 + 10;
79 if (!F_ISSET(mp, MP_LSN_RETRY) && log_compare(lsnp, &mp->lsn) <= 0) {
80 if (mp->lsn_cnt == 0) {
81 *lsnp = mp->lsn;
89 F_CLR(mp, MP_LSN_RETRY);
107 mp->lsn = *lsnp;
108 mp->lsn_cnt = 0;
109 for (mfp = SH_TAILQ_FIRST(&dbmp->mp->mpfq, __mpoolfile);
130 maxpin = ((mp->stat.st_page_dirty + mp->stat.st_page_clean) * 8) / 10;
131 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
136 ++mp->lsn_cnt;
161 F_SET(mp, MP_LSN_RETRY);
171 ret = mp->lsn_cnt ? DB_INCOMPLETE : 0;
222 ret = mp->lsn_cnt != 0 ||
223 F_ISSET(mp, MP_LSN_RETRY) ? DB_INCOMPLETE : 0;
233 mp->lsn_cnt = 0;
234 for (mfp = SH_TAILQ_FIRST(&dbmp->mp->mpfq, __mpoolfile);
237 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
320 MPOOL *mp;
326 mp = dbmp->mp;
338 nalloc = mp->stat.st_page_dirty + mp->stat.st_page_dirty / 2 + 10;
351 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
447 MPOOL *mp;
455 mp = dbmp->mp;
474 loop: total = mp->stat.st_page_clean + mp->stat.st_page_dirty;
475 if (total == 0 || mp->stat.st_page_dirty == 0 ||
476 (mp->stat.st_page_clean * 100) / total >= (u_long)pct) {
482 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
513 ++mp->stat.st_page_trickle;