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()
2608 static void add_missing_indices(struct inode *inode, s64 bn) in add_missing_indices() argument
2624 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc); in add_missing_indices()
2645 d->index = cpu_to_le32(add_index(tid, inode, bn, i)); in add_missing_indices()
2706 s64 bn; in jfs_readdir() local
2776 bn = addressDTS(&dirtab_slot); in jfs_readdir()
2778 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
2816 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
2862 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
2865 if (bn < 0) { in jfs_readdir()
2955 (long long)bn, in jfs_readdir()
2977 bn = 0; in jfs_readdir()
2979 bn = le64_to_cpu(p->header.next); in jfs_readdir()
3004 add_missing_indices(ip, bn); in jfs_readdir()
3008 if (!overflow && (bn == 0)) { in jfs_readdir()
3013 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
3035 s64 bn; in dtReadFirst() local
3050 for (bn = 0;;) { in dtReadFirst()
3051 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtReadFirst()
3061 btsp->bn = bn; in dtReadFirst()
3078 BT_PUSH(btstack, bn, 0); in dtReadFirst()
3085 bn = addressPXD(xd); in dtReadFirst()
3113 s64 bn; in dtReadNext() local
3129 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtReadNext()
3142 bn = -1; in dtReadNext()
3154 bn = -1; in dtReadNext()
3164 bn = le64_to_cpu(p->header.next); in dtReadNext()
3170 if (bn == 0) { in dtReadNext()
3171 bn = -1; in dtReadNext()
3187 bn = parent->bn; in dtReadNext()
3188 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3197 bn = le64_to_cpu(p->header.next); in dtReadNext()
3203 if (bn == 0) { in dtReadNext()
3204 bn = -1; in dtReadNext()
3209 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3214 parent->bn = bn; in dtReadNext()
3220 bn = addressPXD(xd); in dtReadNext()
3229 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3238 bn = le64_to_cpu(p->header.next); in dtReadNext()
3244 if (bn == 0) { in dtReadNext()
3245 bn = -1; in dtReadNext()
3250 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3262 btsp->bn = bn; in dtReadNext()
3609 s64 bn = 0; in dtInsertEntry() local
3638 bn = addressPXD(&p->header.self); in dtInsertEntry()
3641 bn, index)); in dtInsertEntry()
3730 le32_to_cpu(lh->index), bn, n, in dtInsertEntry()
4213 s64 bn; in dtModify() local
4234 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtModify()