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);
2613 static void add_missing_indices(struct inode *inode, s64 bn)
2629 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc);
2650 d->index = cpu_to_le32(add_index(tid, inode, bn, i));
2711 s64 bn;
2781 bn = addressDTS(&dirtab_slot);
2783 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
2821 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
2867 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
2870 if (bn < 0) {
2958 "JFS:Dtree error: ino = %ld, bn=%lld, index = %d\n",
2960 (long long)bn,
2982 bn = 0;
2984 bn = le64_to_cpu(p->header.next);
3009 add_missing_indices(ip, bn);
3013 if (!overflow && (bn == 0)) {
3018 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3040 s64 bn;
3053 * by convention, root bn = 0.
3055 for (bn = 0;;) {
3056 DT_GETPAGE(ip, bn, mp, psize, p, rc);
3066 btsp->bn = bn;
3082 /* push (bn, index) of the parent page/entry */
3083 BT_PUSH(btstack, bn, 0);
3090 bn = addressPXD(xd);
3104 * return: if (offset > eof), bn = -1;
3118 s64 bn;
3134 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index);
3147 bn = -1;
3159 bn = -1;
3169 bn = le64_to_cpu(p->header.next);
3175 if (bn == 0) {
3176 bn = -1;
3192 bn = parent->bn;
3193 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3202 bn = le64_to_cpu(p->header.next);
3208 if (bn == 0) {
3209 bn = -1;
3214 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3219 parent->bn = bn;
3225 bn = addressPXD(xd);
3234 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3243 bn = le64_to_cpu(p->header.next);
3249 if (bn == 0) {
3250 bn = -1;
3255 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3267 btsp->bn = bn;
3614 s64 bn = 0;
3643 bn = addressPXD(&p->header.self);
3646 bn, index));
3735 le32_to_cpu(lh->index), bn, n,
4218 s64 bn;
4239 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);