Lines Matching refs:mp

92 	struct metapage *mp;  member
153 struct metapage *mp; in xtLookup() local
188 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
216 XT_PUTPAGE(mp); in xtLookup()
246 struct metapage *mp; /* page buffer */ in xtSearch() local
279 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtSearch()
362 btsp->mp = mp; in xtSearch()
409 btsp->mp = mp; in xtSearch()
467 btsp->mp = mp; in xtSearch()
504 XT_PUTPAGE(mp); in xtSearch()
513 XT_PUTPAGE(mp); in xtSearch()
543 struct metapage *mp; /* meta-page buffer */ in xtInsert() local
569 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtInsert()
610 split.mp = mp; in xtInsert()
638 BT_MARK_DIRTY(mp, ip); in xtInsert()
654 tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW); in xtInsert()
667 XT_PUTPAGE(mp); in xtInsert()
711 smp = split->mp; in xtSplitUp()
855 split->mp = smp; in xtSplitUp()
967 struct metapage *mp; in xtSplitPage() local
978 smp = split->mp; in xtSplitPage()
1089 XT_GETPAGE(ip, nextbn, mp, PSIZE, p, rc); in xtSplitPage()
1095 BT_MARK_DIRTY(mp, ip); in xtSplitPage()
1102 tlck = txLock(tid, ip, mp, tlckXTREE | tlckRELINK); in xtSplitPage()
1110 XT_PUTPAGE(mp); in xtSplitPage()
1325 BT_MARK_DIRTY(split->mp, ip); in xtSplitRoot()
1337 tlck = txLock(tid, ip, split->mp, tlckXTREE | tlckGROW); in xtSplitRoot()
1367 struct metapage *mp; /* meta-page buffer */ in xtExtend() local
1385 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtExtend()
1388 XT_PUTPAGE(mp); in xtExtend()
1396 XT_PUTPAGE(mp); in xtExtend()
1406 BT_MARK_DIRTY(mp, ip); in xtExtend()
1408 tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW); in xtExtend()
1433 split.mp = mp; in xtExtend()
1444 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtExtend()
1457 XT_PUTPAGE(mp); in xtExtend()
1460 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtExtend()
1464 BT_MARK_DIRTY(mp, ip); in xtExtend()
1466 tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW); in xtExtend()
1504 XT_PUTPAGE(mp); in xtExtend()
1530 struct metapage *mp; /* meta-page buffer */ in xtTailgate() local
1552 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtTailgate()
1555 XT_PUTPAGE(mp); in xtTailgate()
1563 XT_PUTPAGE(mp); in xtTailgate()
1568 BT_MARK_DIRTY(mp, ip); in xtTailgate()
1573 tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW); in xtTailgate()
1598 split.mp = mp; in xtTailgate()
1609 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtTailgate()
1622 XT_PUTPAGE(mp); in xtTailgate()
1625 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtTailgate()
1629 BT_MARK_DIRTY(mp, ip); in xtTailgate()
1631 tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW); in xtTailgate()
1686 XT_PUTPAGE(mp); in xtTailgate()
1709 struct metapage *mp; /* meta-page buffer */ in xtUpdate() local
1733 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index0); in xtUpdate()
1736 XT_PUTPAGE(mp); in xtUpdate()
1741 BT_MARK_DIRTY(mp, ip); in xtUpdate()
1746 tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW); in xtUpdate()
1759 XT_PUTPAGE(mp); in xtUpdate()
1909 XT_PUTPAGE(mp); in xtUpdate()
1931 split.mp = mp; in xtUpdate()
1942 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtUpdate()
1955 XT_PUTPAGE(mp); in xtUpdate()
1958 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtUpdate()
1962 BT_MARK_DIRTY(mp, ip); in xtUpdate()
1964 tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW); in xtUpdate()
2016 XT_PUTPAGE(mp); in xtUpdate()
2019 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtUpdate()
2023 BT_MARK_DIRTY(mp, ip); in xtUpdate()
2025 tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW); in xtUpdate()
2041 XT_PUTPAGE(mp); in xtUpdate()
2047 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index0); in xtUpdate()
2050 XT_PUTPAGE(mp); in xtUpdate()
2056 XT_PUTPAGE(mp); in xtUpdate()
2084 split.mp = mp; in xtUpdate()
2095 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtUpdate()
2109 XT_PUTPAGE(mp); in xtUpdate()
2112 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtUpdate()
2116 BT_MARK_DIRTY(mp, ip); in xtUpdate()
2118 tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW); in xtUpdate()
2146 XT_PUTPAGE(mp); in xtUpdate()
2176 struct metapage *mp; /* meta-page buffer */ in xtAppend() local
2208 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtAppend()
2264 split.mp = mp; in xtAppend()
2291 BT_MARK_DIRTY(mp, ip); in xtAppend()
2297 tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW); in xtAppend()
2317 XT_PUTPAGE(mp); in xtAppend()
2345 struct metapage *mp; in xtDelete() local
2357 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtDelete()
2360 XT_PUTPAGE(mp); in xtDelete()
2374 return (xtDeleteUp(tid, ip, mp, p, &btstack)); in xtDelete()
2376 BT_MARK_DIRTY(mp, ip); in xtDelete()
2382 tlck = txLock(tid, ip, mp, tlckXTREE); in xtDelete()
2392 XT_PUTPAGE(mp); in xtDelete()
2414 struct metapage *mp; in xtDeleteUp() local
2463 XT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc); in xtDeleteUp()
2499 discard_metapage(mp); in xtDeleteUp()
2510 BT_MARK_DIRTY(mp, ip); in xtDeleteUp()
2516 tlck = txLock(tid, ip, mp, tlckXTREE); in xtDeleteUp()
2537 XT_PUTPAGE(mp); in xtDeleteUp()
2567 struct metapage *mp, *pmp, *lmp, *rmp; /* meta-page buffer */ in xtRelocate() local
2719 XT_GETPAGE(ip, oxaddr, mp, PSIZE, p, rc); in xtRelocate()
2734 XT_PUTPAGE(mp); in xtRelocate()
2745 XT_PUTPAGE(mp); in xtRelocate()
2792 BT_MARK_DIRTY(mp, ip); in xtRelocate()
2794 tlck = txLock(tid, ip, mp, tlckXTREE | tlckNEW); in xtRelocate()
2807 bmSetXD(mp, nxaddr, xsize); in xtRelocate()
2810 XT_PUTPAGE(mp); in xtRelocate()
2899 struct metapage *mp; /* meta-page buffer */ in xtSearchNode() local
2929 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtSearchNode()
2933 XT_PUTPAGE(mp); in xtSearchNode()
2960 btsp->mp = mp; in xtSearchNode()
2993 XT_PUTPAGE(mp); in xtSearchNode()
3014 struct metapage *mp; in xtRelink() local
3023 XT_GETPAGE(ip, nextbn, mp, PSIZE, p, rc); in xtRelink()
3032 BT_MARK_DIRTY(mp, ip); in xtRelink()
3033 tlck = txLock(tid, ip, mp, tlckXTREE | tlckRELINK); in xtRelink()
3039 XT_PUTPAGE(mp); in xtRelink()
3044 XT_GETPAGE(ip, prevbn, mp, PSIZE, p, rc); in xtRelink()
3053 BT_MARK_DIRTY(mp, ip); in xtRelink()
3054 tlck = txLock(tid, ip, mp, tlckXTREE | tlckRELINK); in xtRelink()
3060 XT_PUTPAGE(mp); in xtRelink()
3166 struct metapage *mp; in xtTruncate() local
3245 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtTruncate()
3264 tlck = txLock(tid, ip, mp, tlckXTREE|tlckGROW); in xtTruncate()
3265 BT_MARK_DIRTY(mp, ip); in xtTruncate()
3282 XT_PUTPAGE(mp); in xtTruncate()
3293 XT_PUTPAGE(mp); in xtTruncate()
3297 tlck = txLock(tid, ip, mp, tlckXTREE); in xtTruncate()
3302 BT_MARK_DIRTY(mp, ip); in xtTruncate()
3417 XT_PUTPAGE(mp); in xtTruncate()
3449 XT_PUTPAGE(mp); /* debug */ in xtTruncate()
3455 XT_PUTPAGE(mp); in xtTruncate()
3458 if (mp->lid) in xtTruncate()
3459 lid_to_tlock(mp->lid)->flag |= tlckFREELOCK; in xtTruncate()
3462 discard_metapage(mp); in xtTruncate()
3483 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtTruncate()
3500 tlck = txLock(tid, ip, mp, tlckXTREE); in xtTruncate()
3519 BT_MARK_DIRTY(mp, ip); in xtTruncate()
3523 XT_PUTPAGE(mp); in xtTruncate()
3545 if (log && mp->lid && (tblk->last != mp->lid) && in xtTruncate()
3546 lid_to_tlock(mp->lid)->tid) { in xtTruncate()
3547 lid_t lid = mp->lid; in xtTruncate()
3576 tlck = txLock(tid, ip, mp, tlckXTREE); in xtTruncate()
3591 BT_MARK_DIRTY(mp, ip); in xtTruncate()
3607 XT_PUTPAGE(mp); /* debug */ in xtTruncate()
3613 XT_PUTPAGE(mp); in xtTruncate()
3616 if (mp->lid) in xtTruncate()
3617 lid_to_tlock(mp->lid)->flag |= in xtTruncate()
3621 discard_metapage(mp); in xtTruncate()
3653 XT_PUTPAGE(mp); in xtTruncate()
3666 XT_PUTPAGE(mp); in xtTruncate()
3725 struct metapage *mp; in xtTruncate_pmap() local
3749 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtTruncate_pmap()
3752 XT_PUTPAGE(mp); in xtTruncate_pmap()
3768 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtTruncate_pmap()
3791 XT_PUTPAGE(mp); in xtTruncate_pmap()
3794 tlck = txLock(tid, ip, mp, tlckXTREE); in xtTruncate_pmap()
3800 XT_PUTPAGE(mp); in xtTruncate_pmap()
3813 XT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in xtTruncate_pmap()
3827 tlck = txLock(tid, ip, mp, tlckXTREE); in xtTruncate_pmap()
3832 XT_PUTPAGE(mp); in xtTruncate_pmap()
3853 XT_PUTPAGE(mp); in xtTruncate_pmap()
3866 XT_PUTPAGE(mp); in xtTruncate_pmap()