• Home
  • Raw
  • Download

Lines Matching refs:index

80 	s16 index;  member
131 int index; in xtLookup() local
164 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtLookup()
179 xad = &p->xad[index]; in xtLookup()
225 int base, index, lim, btindex; in xtSearch() local
268 (index = jfs_ip->btindex) < in xtSearch()
270 xad = &p->xad[index]; in xtSearch()
283 index++; in xtSearch()
284 if (index < in xtSearch()
337 btsp->index = index; in xtSearch()
341 jfs_ip->btindex = index; in xtSearch()
358 index = base + (lim >> 1); in xtSearch()
360 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch()
384 btsp->index = index; in xtSearch()
389 if (index == btindex || in xtSearch()
390 index == btindex + 1) in xtSearch()
394 jfs_ip->btindex = index; in xtSearch()
401 if (index < le16_to_cpu(p->header.nextindex)-1) in xtSearch()
402 next = offsetXAD(&p->xad[index + 1]); in xtSearch()
407 base = index + 1; in xtSearch()
442 btsp->index = base; in xtSearch()
465 index = base ? base - 1 : base; in xtSearch()
483 BT_PUSH(btstack, bn, index); in xtSearch()
486 bn = addressXAD(&p->xad[index]); in xtSearch()
522 int index, nextindex; in xtInsert() local
545 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtInsert()
560 if (index > XTENTRYSTART) { in xtInsert()
561 xad = &p->xad[index - 1]; in xtInsert()
587 split.index = index; in xtInsert()
617 if (index < nextindex) in xtInsert()
618 memmove(&p->xad[index + 1], &p->xad[index], in xtInsert()
619 (nextindex - index) * sizeof(xad_t)); in xtInsert()
622 xad = &p->xad[index]; in xtInsert()
633 (xtlck->lwm.offset) ? min(index, in xtInsert()
634 (int)xtlck->lwm.offset) : index; in xtInsert()
705 skip = split->index; in xtSplitUp()
820 skip = parent->index + 1; in xtSplitUp()
832 split->index = skip; /* index at insert */ in xtSplitUp()
1017 skip = split->index; in xtSplitPage()
1269 skip = split->index; in xtSplitRoot()
1346 int index, nextindex, len; in xtExtend() local
1361 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtExtend()
1370 xad = &p->xad[index]; in xtExtend()
1410 split.index = index + 1; in xtExtend()
1452 xad = &p->xad[index + 1]; in xtExtend()
1460 xad = &p->xad[index]; in xtExtend()
1473 (xtlck->lwm.offset) ? min(index, in xtExtend()
1474 (int)xtlck->lwm.offset) : index; in xtExtend()
1505 int index0, index, newindex, nextindex; in xtUpdate() local
1558 index = index0; in xtUpdate()
1559 newindex = index + 1; in xtUpdate()
1569 if (index == XTENTRYSTART) in xtUpdate()
1573 lxad = &p->xad[index - 1]; in xtUpdate()
1580 index0 = index - 1; in xtUpdate()
1600 if (index < nextindex - 1) in xtUpdate()
1601 memmove(&p->xad[index], &p->xad[index + 1], in xtUpdate()
1602 (nextindex - index - in xtUpdate()
1609 index = index0; in xtUpdate()
1610 newindex = index + 1; in xtUpdate()
1644 rxad = &p->xad[index + 1]; in xtUpdate()
1669 memmove(&p->xad[index], &p->xad[index + 1], in xtUpdate()
1670 (nextindex - index - 1) << L2XTSLOTSIZE); in xtUpdate()
1696 xad = &p->xad[index]; in xtUpdate()
1704 split.index = newindex; in xtUpdate()
1801 index0 = index = newindex; in xtUpdate()
1803 index++; in xtUpdate()
1805 newindex = index + 1; in xtUpdate()
1827 if (index0 != index) { in xtUpdate()
1843 xad = &p->xad[index]; in xtUpdate()
1857 split.index = newindex; in xtUpdate()
1951 int index, nextindex; in xtAppend() local
1980 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtAppend()
2037 split.index = index; in xtAppend()
2073 xad = &p->xad[index]; in xtAppend()
2080 (xtlck->lwm.offset) ? min(index,(int) xtlck->lwm.offset) : index; in xtAppend()
2195 int index, nextindex; in xtTruncate() local
2226 xadlock.index = 1; in xtTruncate()
2276 index = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate()
2304 xad = &p->xad[index]; in xtTruncate()
2333 for (; index >= XTENTRYSTART; index--) { in xtTruncate()
2334 xad = &p->xad[index]; in xtTruncate()
2372 if (index == XTENTRYSTART) in xtTruncate()
2375 nextindex = index; in xtTruncate()
2393 min(index, (int)xtlck->lwm.offset) : index; in xtTruncate()
2394 xtlck->lwm.length = index + 1 - in xtTruncate()
2396 xtlck->twm.offset = index; in xtTruncate()
2416 nextindex = index + 1; in xtTruncate()
2428 nextindex = index + 1; in xtTruncate()
2513 index = parent->index; in xtTruncate()
2520 if (index < le16_to_cpu(p->header.nextindex) - 1) { in xtTruncate()
2538 xadlock.xdlist = &p->xad[index + 1]; in xtTruncate()
2541 index - 1; in xtTruncate()
2547 p->header.nextindex = cpu_to_le16(index + 1); in xtTruncate()
2556 nfreed += lengthXAD(&p->xad[index]); in xtTruncate()
2596 if (index == XTENTRYSTART) { in xtTruncate()
2664 index--; in xtTruncate()
2682 BT_PUSH(&btstack, bn, index); in xtTruncate()
2685 xad = &p->xad[index]; in xtTruncate()
2749 int index; in xtTruncate_pmap() local
2775 XT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in xtTruncate_pmap()
2799 index = le16_to_cpu(p->header.nextindex) - 1; in xtTruncate_pmap()
2814 xad = &p->xad[index]; in xtTruncate_pmap()
2823 xtlck->hwm.offset = index; in xtTruncate_pmap()
2843 index = parent->index; in xtTruncate_pmap()
2848 if (index == XTENTRYSTART) { in xtTruncate_pmap()
2871 index--; in xtTruncate_pmap()
2882 BT_PUSH(&btstack, bn, index); in xtTruncate_pmap()
2885 xad = &p->xad[index]; in xtTruncate_pmap()