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
633 for (bn = 0;;) { in dtSearch()
635 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearch()
705 btsp->bn = bn; in dtSearch()
754 btsp->bn = bn; in dtSearch()
787 BT_PUSH(btstack, bn, index); in dtSearch()
791 bn = addressPXD(pxd); in dtSearch()
827 s64 bn; in dtInsert() local
843 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtInsert()
1138 DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc); in dtSplitUp()
1673 DT_GETPAGE(ip, parent->bn, pmp, PSIZE, pp, rc); in dtExtendPage()
2086 s64 bn; in dtDelete() local
2110 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtDelete()
2214 bn, i, &imp, &lblock); in dtDelete()
2308 DT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc); in dtDeleteUp()
2451 s64 bn; in dtRelocate() local
2479 DT_GETSEARCH(ip, btstack.top, bn, pmp, pp, index); in dtRelocate()
2646 s64 bn; in dtSearchNode() local
2662 for (bn = 0;;) { in dtSearchNode()
2664 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtSearchNode()
2690 bn = addressPXD(pxd); in dtSearchNode()
2708 btsp->bn = bn; in dtSearchNode()
2718 bn = le64_to_cpu(p->header.next); in dtSearchNode()
2728 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtSearchNode()
2918 static void add_missing_indices(struct inode *inode, s64 bn) in add_missing_indices() argument
2934 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc); in add_missing_indices()
2955 d->index = cpu_to_le32(add_index(tid, inode, bn, i)); in add_missing_indices()
3016 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()
3174 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
3177 if (bn < 0) { in jfs_readdir()
3267 (long long)bn, in jfs_readdir()
3289 bn = 0; in jfs_readdir()
3291 bn = le64_to_cpu(p->header.next); in jfs_readdir()
3316 add_missing_indices(ip, bn); in jfs_readdir()
3320 if (!overflow && (bn == 0)) { in jfs_readdir()
3325 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
3347 s64 bn; in dtReadFirst() local
3362 for (bn = 0;;) { in dtReadFirst()
3363 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtReadFirst()
3373 btsp->bn = bn; in dtReadFirst()
3390 BT_PUSH(btstack, bn, 0); in dtReadFirst()
3397 bn = addressPXD(xd); in dtReadFirst()
3425 s64 bn; in dtReadNext() local
3441 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtReadNext()
3454 bn = -1; in dtReadNext()
3466 bn = -1; in dtReadNext()
3476 bn = le64_to_cpu(p->header.next); in dtReadNext()
3482 if (bn == 0) { in dtReadNext()
3483 bn = -1; in dtReadNext()
3499 bn = parent->bn; in dtReadNext()
3500 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3509 bn = le64_to_cpu(p->header.next); in dtReadNext()
3515 if (bn == 0) { in dtReadNext()
3516 bn = -1; in dtReadNext()
3521 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3526 parent->bn = bn; in dtReadNext()
3532 bn = addressPXD(xd); in dtReadNext()
3541 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3550 bn = le64_to_cpu(p->header.next); in dtReadNext()
3556 if (bn == 0) { in dtReadNext()
3557 bn = -1; in dtReadNext()
3562 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3574 btsp->bn = bn; in dtReadNext()
3921 s64 bn = 0; in dtInsertEntry() local
3950 bn = addressPXD(&p->header.self); in dtInsertEntry()
3953 bn, index)); in dtInsertEntry()
4042 le32_to_cpu(lh->index), bn, n, in dtInsertEntry()
4525 s64 bn; in dtModify() local
4546 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtModify()