Lines Matching refs:xoff

117 static int xtSearch(struct inode *ip, s64 xoff, s64 *next, int *cmpp,
157 s64 next, size, xoff, xend; in xtLookup() local
204 xoff = offsetXAD(xad); in xtLookup()
206 xend = xoff + xlen; in xtLookup()
211 *paddr = xaddr + (lstart - xoff); in xtLookup()
239 static int xtSearch(struct inode *ip, s64 xoff, s64 *nextp, in xtSearch() argument
296 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
297 if (xoff >= t64) { in xtSearch()
312 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
313 if (xoff >= t64) { in xtSearch()
384 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch()
538 struct inode *ip, int xflag, s64 xoff, s32 xlen, s64 * xaddrp, in xtInsert() argument
555 jfs_info("xtInsert: nxoff:0x%lx nxlen:0x%x", (ulong) xoff, xlen); in xtInsert()
565 if ((rc = xtSearch(ip, xoff, &next, &cmp, &btstack, XT_INSERT))) in xtInsert()
573 if ((cmp == 0) || (next && (xlen > next - xoff))) { in xtInsert()
613 split.off = xoff; in xtInsert()
647 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtInsert()
1361 struct inode *ip, s64 xoff, /* delta extent offset */ in xtExtend() argument
1378 jfs_info("xtExtend: nxoff:0x%lx nxlen:0x%x", (ulong) xoff, xlen); in xtExtend()
1381 if ((rc = xtSearch(ip, xoff - 1, NULL, &cmp, &btstack, XT_INSERT))) in xtExtend()
1395 if ((offsetXAD(xad) + lengthXAD(xad)) != xoff) { in xtExtend()
1421 xoff = offsetXAD(xad) + MAXXLEN; in xtExtend()
1436 split.off = xoff; /* split offset */ in xtExtend()
1477 XT_PUTENTRY(xad, XAD_NEW, xoff, len, xaddr); in xtExtend()
1523 struct inode *ip, s64 xoff, /* split/new extent offset */ in xtTailgate() argument
1548 if ((rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, XT_INSERT))) in xtTailgate()
1583 if ((llen = xoff - offsetXAD(xad)) == 0) in xtTailgate()
1601 split.off = xoff; /* split offset */ in xtTailgate()
1642 XT_PUTENTRY(xad, XAD_NEW, xoff, xlen, xaddr); in xtTailgate()
1676 XT_PUTENTRY(xad, XAD_NEW, xoff, xlen, xaddr); in xtTailgate()
1717 s64 nxoff, xoff; in xtUpdate() local
1752 xoff = offsetXAD(xad); in xtUpdate()
1757 if ((xoff > nxoff) || in xtUpdate()
1758 (nxoff + nxlen > xoff + xlen)) { in xtUpdate()
1770 if (xoff < nxoff) in xtUpdate()
1788 if (xoff < nxoff) in xtUpdate()
1820 XADoffset(xad, xoff + nxlen); in xtUpdate()
1839 xoff = nxoff = offsetXAD(lxad); in xtUpdate()
1865 if (xoff == nxoff) in xtUpdate()
1905 } else if (xoff == nxoff) in xtUpdate()
1908 if (xoff >= nxoff) { in xtUpdate()
1925 XADlength(xad, nxoff - xoff); in xtUpdate()
2001 if (nxoff + nxlen == xoff + xlen) in xtUpdate()
2035 xlen = xlen - (nxoff - xoff); in xtUpdate()
2036 xoff = nxoff; in xtUpdate()
2076 xoff = xoff + nxlen; in xtUpdate()
2087 split.off = xoff; in xtUpdate()
2130 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtUpdate()
2170 struct inode *ip, int xflag, s64 xoff, s32 maxblocks, in xtAppend() argument
2194 (ulong) xoff, maxblocks, xlen, (ulong) xaddr); in xtAppend()
2204 if ((rc = xtSearch(ip, xoff, &next, &cmp, &btstack, XT_INSERT))) in xtAppend()
2216 xlen = min(xlen, (int)(next - xoff)); in xtAppend()
2267 split.off = xoff; in xtAppend()
2302 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtAppend()
2339 int xtDelete(tid_t tid, struct inode *ip, s64 xoff, s32 xlen, int flag) in xtDelete() argument
2354 if ((rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0))) in xtDelete()
2571 s64 xoff, xsize; in xtRelocate() local
2585 xoff = offsetXAD(oxad); in xtRelocate()
2590 offset = xoff << JFS_SBI(ip->i_sb)->l2bsize; in xtRelocate()
2595 xtype, (ulong) xoff, xlen, (ulong) oxaddr, (ulong) nxaddr); in xtRelocate()
2603 rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0); in xtRelocate()
2672 offset = xoff << JFS_SBI(ip->i_sb)->l2bsize; in xtRelocate()
2709 if ((rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0))) in xtRelocate()
2895 s64 xoff, xaddr; in xtSearchNode() local
2907 xoff = offsetXAD(xad); in xtSearchNode()
2945 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearchNode()
2953 xoff == offsetXAD(&p->xad[index])) { in xtSearchNode()
3171 s64 xoff, xaddr; in xtTruncate() local
3279 xoff = offsetXAD(xad); in xtTruncate()
3281 if (teof >= xoff + xlen) { in xtTruncate()
3294 newsize = (xoff + xlen) << JFS_SBI(ip->i_sb)->l2bsize; in xtTruncate()
3309 xoff = offsetXAD(xad); in xtTruncate()
3326 if (teof < xoff) { in xtTruncate()
3343 if (teof == xoff) { in xtTruncate()
3357 else if (teof < xoff + xlen) { in xtTruncate()
3359 len = teof - xoff; in xtTruncate()
3733 s64 xoff; in xtTruncate_pmap() local
3744 xoff = (committed_size >> JFS_SBI(ip->i_sb)->l2bsize) - 1; in xtTruncate_pmap()
3745 rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0); in xtTruncate_pmap()
3789 xoff = offsetXAD(xad); in xtTruncate_pmap()
3792 return (xoff + xlen) << JFS_SBI(ip->i_sb)->l2bsize; in xtTruncate_pmap()