Lines Matching refs:bn
334 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
372 DTSaddress(dirtab_slot, bn); in add_index()
477 DTSaddress(dirtab_slot, bn); in add_index()
524 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument
534 DTSaddress(dirtab_slot, bn); in modify_index()
585 s64 bn; in dtSearch() local
634 for (bn = 0;;) { in dtSearch()
636 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
706 btsp->bn = bn; in dtSearch()
755 btsp->bn = bn; in dtSearch()
788 BT_PUSH(btstack, bn, index); in dtSearch()
792 bn = addressPXD(pxd); in dtSearch()
828 s64 bn; in dtInsert() local
844 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtInsert()
1139 DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc); in dtSplitUp()
1674 DT_GETPAGE(ip, parent->bn, pmp, PSIZE, pp, rc); in dtExtendPage()
2087 s64 bn; in dtDelete() local
2111 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtDelete()
2215 bn, i, &imp, &lblock); in dtDelete()
2309 DT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc); in dtDeleteUp()
2452 s64 bn; in dtRelocate() local
2480 DT_GETSEARCH(ip, btstack.top, bn, pmp, pp, index); in dtRelocate()
2647 s64 bn; in dtSearchNode() local
2663 for (bn = 0;;) { in dtSearchNode()
2665 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearchNode()
2691 bn = addressPXD(pxd); in dtSearchNode()
2709 btsp->bn = bn; in dtSearchNode()
2719 bn = le64_to_cpu(p->header.next); in dtSearchNode()
2729 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtSearchNode()
2919 static void add_missing_indices(struct inode *inode, s64 bn) in add_missing_indices() argument
2935 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc); in add_missing_indices()
2956 d->index = cpu_to_le32(add_index(tid, inode, bn, i)); in add_missing_indices()
3017 s64 bn; in jfs_readdir() local
3087 bn = addressDTS(&dirtab_slot); in jfs_readdir()
3089 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
3127 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
3173 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
3176 if (bn < 0) { in jfs_readdir()
3266 (long long)bn, in jfs_readdir()
3288 bn = 0; in jfs_readdir()
3290 bn = le64_to_cpu(p->header.next); in jfs_readdir()
3315 add_missing_indices(ip, bn); in jfs_readdir()
3319 if (!overflow && (bn == 0)) { in jfs_readdir()
3324 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
3346 s64 bn; in dtReadFirst() local
3361 for (bn = 0;;) { in dtReadFirst()
3362 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtReadFirst()
3372 btsp->bn = bn; in dtReadFirst()
3389 BT_PUSH(btstack, bn, 0); in dtReadFirst()
3396 bn = addressPXD(xd); in dtReadFirst()
3424 s64 bn; in dtReadNext() local
3440 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtReadNext()
3453 bn = -1; in dtReadNext()
3465 bn = -1; in dtReadNext()
3475 bn = le64_to_cpu(p->header.next); in dtReadNext()
3481 if (bn == 0) { in dtReadNext()
3482 bn = -1; in dtReadNext()
3498 bn = parent->bn; in dtReadNext()
3499 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3508 bn = le64_to_cpu(p->header.next); in dtReadNext()
3514 if (bn == 0) { in dtReadNext()
3515 bn = -1; in dtReadNext()
3520 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3525 parent->bn = bn; in dtReadNext()
3531 bn = addressPXD(xd); in dtReadNext()
3540 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3549 bn = le64_to_cpu(p->header.next); in dtReadNext()
3555 if (bn == 0) { in dtReadNext()
3556 bn = -1; in dtReadNext()
3561 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3573 btsp->bn = bn; in dtReadNext()
3920 s64 bn = 0; in dtInsertEntry() local
3949 bn = addressPXD(&p->header.self); in dtInsertEntry()
3952 bn, index)); in dtInsertEntry()
4041 le32_to_cpu(lh->index), bn, n, in dtInsertEntry()
4524 s64 bn; in dtModify() local
4545 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtModify()