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()
698 btsp->bn = bn; in dtSearch()
747 btsp->bn = bn; in dtSearch()
780 BT_PUSH(btstack, bn, index); in dtSearch()
784 bn = addressPXD(pxd); in dtSearch()
820 s64 bn; in dtInsert() local
836 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtInsert()
1133 DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc); in dtSplitUp()
1668 DT_GETPAGE(ip, parent->bn, pmp, PSIZE, pp, rc); in dtExtendPage()
2081 s64 bn; in dtDelete() local
2105 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtDelete()
2209 bn, i, &imp, &lblock); in dtDelete()
2303 DT_GETPAGE(ip, parent->bn, mp, PSIZE, p, rc); in dtDeleteUp()
2615 static void add_missing_indices(struct inode *inode, s64 bn) in add_missing_indices() argument
2631 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc); in add_missing_indices()
2652 d->index = cpu_to_le32(add_index(tid, inode, bn, i)); in add_missing_indices()
2713 s64 bn; in jfs_readdir() local
2783 bn = addressDTS(&dirtab_slot); in jfs_readdir()
2785 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
2823 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
2869 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
2872 if (bn < 0) { in jfs_readdir()
2896 i, stbl[i], (long)ip->i_ino, (long long)bn); in jfs_readdir()
2970 (long long)bn, in jfs_readdir()
2992 bn = 0; in jfs_readdir()
2994 bn = le64_to_cpu(p->header.next); in jfs_readdir()
3019 add_missing_indices(ip, bn); in jfs_readdir()
3023 if (!overflow && (bn == 0)) { in jfs_readdir()
3028 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in jfs_readdir()
3050 s64 bn; in dtReadFirst() local
3065 for (bn = 0;;) { in dtReadFirst()
3066 DT_GETPAGE(ip, bn, mp, psize, p, rc); in dtReadFirst()
3076 btsp->bn = bn; in dtReadFirst()
3093 BT_PUSH(btstack, bn, 0); in dtReadFirst()
3107 bn = addressPXD(xd); in dtReadFirst()
3135 s64 bn; in dtReadNext() local
3151 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtReadNext()
3164 bn = -1; in dtReadNext()
3176 bn = -1; in dtReadNext()
3186 bn = le64_to_cpu(p->header.next); in dtReadNext()
3192 if (bn == 0) { in dtReadNext()
3193 bn = -1; in dtReadNext()
3209 bn = parent->bn; in dtReadNext()
3210 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3219 bn = le64_to_cpu(p->header.next); in dtReadNext()
3225 if (bn == 0) { in dtReadNext()
3226 bn = -1; in dtReadNext()
3231 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3236 parent->bn = bn; in dtReadNext()
3242 bn = addressPXD(xd); in dtReadNext()
3251 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3260 bn = le64_to_cpu(p->header.next); in dtReadNext()
3266 if (bn == 0) { in dtReadNext()
3267 bn = -1; in dtReadNext()
3272 DT_GETPAGE(ip, bn, mp, PSIZE, p, rc); in dtReadNext()
3284 btsp->bn = bn; in dtReadNext()
3631 s64 bn = 0; in dtInsertEntry() local
3660 bn = addressPXD(&p->header.self); in dtInsertEntry()
3663 bn, index)); in dtInsertEntry()
3752 le32_to_cpu(lh->index), bn, n, in dtInsertEntry()
4235 s64 bn; in dtModify() local
4256 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtModify()