Lines Matching refs:bn
322 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot)
360 DTSaddress(dirtab_slot, bn);
465 DTSaddress(dirtab_slot, bn);
512 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn,
522 DTSaddress(dirtab_slot, bn);
573 s64 bn;
620 * by convention, root bn = 0.
622 for (bn = 0;;) {
624 DT_GETPAGE(ip, bn, mp, psize, p, rc);
699 btsp->bn = bn;
748 btsp->bn = bn;
780 /* push (bn, index) of the parent page/entry */
781 BT_PUSH(btstack, bn, index);
785 bn = addressPXD(pxd);
821 s64 bn;
837 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index);
1107 * of (bn of parent page, index of child page entry in parent page)
1134 DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc);
1669 DT_GETPAGE(ip, parent->bn, pmp, PSIZE, pp, rc);
2082 s64 bn;
2106 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
2210 bn, i, &imp, &lblock);
2304 DT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc);
2616 static int add_missing_indices(struct inode *inode, s64 bn)
2632 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc);
2652 i, stbl[i], (long)inode->i_ino, (long long)bn);
2663 d->index = cpu_to_le32(add_index(tid, inode, bn, i));
2725 s64 bn;
2795 bn = addressDTS(&dirtab_slot);
2797 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
2835 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
2881 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);
2884 if (bn < 0) {
2908 i, stbl[i], (long)ip->i_ino, (long long)bn);
2980 "JFS:Dtree error: ino = %ld, bn=%lld, index = %d\n",
2982 (long long)bn,
3004 bn = 0;
3006 bn = le64_to_cpu(p->header.next);
3031 if ((rc = add_missing_indices(ip, bn)))
3036 if (!overflow && (bn == 0)) {
3041 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3063 s64 bn;
3076 * by convention, root bn = 0.
3078 for (bn = 0;;) {
3079 DT_GETPAGE(ip, bn, mp, psize, p, rc);
3089 btsp->bn = bn;
3105 /* push (bn, index) of the parent page/entry */
3106 BT_PUSH(btstack, bn, 0);
3120 bn = addressPXD(xd);
3134 * return: if (offset > eof), bn = -1;
3148 s64 bn;
3164 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index);
3177 bn = -1;
3189 bn = -1;
3199 bn = le64_to_cpu(p->header.next);
3205 if (bn == 0) {
3206 bn = -1;
3222 bn = parent->bn;
3223 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3232 bn = le64_to_cpu(p->header.next);
3238 if (bn == 0) {
3239 bn = -1;
3244 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3249 parent->bn = bn;
3255 bn = addressPXD(xd);
3264 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3273 bn = le64_to_cpu(p->header.next);
3279 if (bn == 0) {
3280 bn = -1;
3285 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
3297 btsp->bn = bn;
3644 s64 bn = 0;
3673 bn = addressPXD(&p->header.self);
3676 bn, index));
3765 le32_to_cpu(lh->index), bn, n,
4248 s64 bn;
4269 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index);