Lines Matching refs:bn
321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
359 DTSaddress(dirtab_slot, bn); in add_index()
464 DTSaddress(dirtab_slot, bn); in add_index()
511 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument
521 DTSaddress(dirtab_slot, bn); in modify_index()
572 s64 bn; in dtSearch() local
621 for (bn = 0;;) { in dtSearch()
623 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
693 btsp->bn = bn; in dtSearch()
742 btsp->bn = bn; in dtSearch()
775 BT_PUSH(btstack, bn, index); in dtSearch()
779 bn = addressPXD(pxd); in dtSearch()
815 s64 bn; in dtInsert() local
831 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtInsert()
1126 DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc); in dtSplitUp()
1661 DT_GETPAGE(ip, parent->bn, pmp, PSIZE, pp, rc); in dtExtendPage()
2074 s64 bn; in dtDelete() local
2098 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtDelete()
2202 bn, i, &imp, &lblock); in dtDelete()
2296 DT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc); in dtDeleteUp()
2439 s64 bn; in dtRelocate() local
2467 DT_GETSEARCH(ip, btstack.top, bn, pmp, pp, index); in dtRelocate()
2634 s64 bn; in dtSearchNode() local
2650 for (bn = 0;;) { in dtSearchNode()
2652 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearchNode()
2678 bn = addressPXD(pxd); in dtSearchNode()
2696 btsp->bn = bn; in dtSearchNode()
2706 bn = le64_to_cpu(p->header.next); in dtSearchNode()
2716 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtSearchNode()
2906 static void add_missing_indices(struct inode *inode, s64 bn) in add_missing_indices() argument
2922 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc); in add_missing_indices()
2943 d->index = cpu_to_le32(add_index(tid, inode, bn, i)); in add_missing_indices()
3004 s64 bn; in jfs_readdir() local
3074 bn = addressDTS(&dirtab_slot); in jfs_readdir()
3076 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
3114 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
3160 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
3163 if (bn < 0) { in jfs_readdir()
3253 (long long)bn, in jfs_readdir()
3275 bn = 0; in jfs_readdir()
3277 bn = le64_to_cpu(p->header.next); in jfs_readdir()
3302 add_missing_indices(ip, bn); in jfs_readdir()
3306 if (!overflow && (bn == 0)) { in jfs_readdir()
3311 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
3333 s64 bn; in dtReadFirst() local
3348 for (bn = 0;;) { in dtReadFirst()
3349 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtReadFirst()
3359 btsp->bn = bn; in dtReadFirst()
3376 BT_PUSH(btstack, bn, 0); in dtReadFirst()
3383 bn = addressPXD(xd); in dtReadFirst()
3411 s64 bn; in dtReadNext() local
3427 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtReadNext()
3440 bn = -1; in dtReadNext()
3452 bn = -1; in dtReadNext()
3462 bn = le64_to_cpu(p->header.next); in dtReadNext()
3468 if (bn == 0) { in dtReadNext()
3469 bn = -1; in dtReadNext()
3485 bn = parent->bn; in dtReadNext()
3486 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3495 bn = le64_to_cpu(p->header.next); in dtReadNext()
3501 if (bn == 0) { in dtReadNext()
3502 bn = -1; in dtReadNext()
3507 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3512 parent->bn = bn; in dtReadNext()
3518 bn = addressPXD(xd); in dtReadNext()
3527 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3536 bn = le64_to_cpu(p->header.next); in dtReadNext()
3542 if (bn == 0) { in dtReadNext()
3543 bn = -1; in dtReadNext()
3548 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3560 btsp->bn = bn; in dtReadNext()
3907 s64 bn = 0; in dtInsertEntry() local
3936 bn = addressPXD(&p->header.self); in dtInsertEntry()
3939 bn, index)); in dtInsertEntry()
4028 le32_to_cpu(lh->index), bn, n, in dtInsertEntry()
4511 s64 bn; in dtModify() local
4532 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtModify()