Lines Matching refs:bn

321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot)
359 DTSaddress(dirtab_slot, bn);
464 DTSaddress(dirtab_slot, bn);
511 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn,
521 DTSaddress(dirtab_slot, bn);
572 s64 bn;
619 * by convention, root bn = 0.
621 for (bn = 0;;) {
623 DT_GETPAGE(ip, bn, mp, psize, p, rc);
698 btsp->bn = bn;
747 btsp->bn = bn;
779 /* push (bn, index) of the parent page/entry */
780 BT_PUSH(btstack, bn, index);
784 bn = addressPXD(pxd);
820 s64 bn;
836 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index);
1104 * of (bn of parent page, index of child page entry in parent page)
1131 DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc);
1666 DT_GETPAGE(ip, parent->bn, pmp, PSIZE, pp, rc);
2079 s64 bn;
2103 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
2207 bn, i, &imp, &lblock);
2301 DT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc);
2444 s64 bn;
2472 DT_GETSEARCH(ip, btstack.top, bn, pmp, pp, index);
2639 s64 bn;
2653 * by convention, root bn = 0.
2655 for (bn = 0;;) {
2657 DT_GETPAGE(ip, bn, mp, psize, p, rc);
2683 bn = addressPXD(pxd);
2701 btsp->bn = bn;
2711 bn = le64_to_cpu(p->header.next);
2721 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
2911 static void add_missing_indices(struct inode *inode, s64 bn)
2927 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc);
2948 d->index = cpu_to_le32(add_index(tid, inode, bn, i));
3009 s64 bn;
3079 bn = addressDTS(&dirtab_slot);
3081 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3119 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
3165 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
3168 if (bn < 0) {
3256 "JFS:Dtree error: ino = %ld, bn=%lld, index = %d\n",
3258 (long long)bn,
3280 bn = 0;
3282 bn = le64_to_cpu(p->header.next);
3307 add_missing_indices(ip, bn);
3311 if (!overflow && (bn == 0)) {
3316 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3338 s64 bn;
3351 * by convention, root bn = 0.
3353 for (bn = 0;;) {
3354 DT_GETPAGE(ip, bn, mp, psize, p, rc);
3364 btsp->bn = bn;
3380 /* push (bn, index) of the parent page/entry */
3381 BT_PUSH(btstack, bn, 0);
3388 bn = addressPXD(xd);
3402 * return: if (offset > eof), bn = -1;
3416 s64 bn;
3432 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index);
3445 bn = -1;
3457 bn = -1;
3467 bn = le64_to_cpu(p->header.next);
3473 if (bn == 0) {
3474 bn = -1;
3490 bn = parent->bn;
3491 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3500 bn = le64_to_cpu(p->header.next);
3506 if (bn == 0) {
3507 bn = -1;
3512 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3517 parent->bn = bn;
3523 bn = addressPXD(xd);
3532 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3541 bn = le64_to_cpu(p->header.next);
3547 if (bn == 0) {
3548 bn = -1;
3553 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3565 btsp->bn = bn;
3912 s64 bn = 0;
3941 bn = addressPXD(&p->header.self);
3944 bn, index));
4033 le32_to_cpu(lh->index), bn, n,
4516 s64 bn;
4537 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);