Lines Matching refs:xoff

104 static int xtSearch(struct inode *ip, s64 xoff, s64 *next, int *cmpp,
133 s64 next, size, xoff, xend; in xtLookup() local
180 xoff = offsetXAD(xad); in xtLookup()
182 xend = xoff + xlen; in xtLookup()
187 *paddr = xaddr + (lstart - xoff); in xtLookup()
215 static int xtSearch(struct inode *ip, s64 xoff, s64 *nextp, in xtSearch() argument
272 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
273 if (xoff >= t64) { in xtSearch()
288 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
289 if (xoff >= t64) { in xtSearch()
360 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch()
514 struct inode *ip, int xflag, s64 xoff, s32 xlen, s64 * xaddrp, in xtInsert() argument
531 jfs_info("xtInsert: nxoff:0x%lx nxlen:0x%x", (ulong) xoff, xlen); in xtInsert()
541 if ((rc = xtSearch(ip, xoff, &next, &cmp, &btstack, XT_INSERT))) in xtInsert()
549 if ((cmp == 0) || (next && (xlen > next - xoff))) { in xtInsert()
589 split.off = xoff; in xtInsert()
623 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtInsert()
1337 struct inode *ip, s64 xoff, /* delta extent offset */ in xtExtend() argument
1354 jfs_info("xtExtend: nxoff:0x%lx nxlen:0x%x", (ulong) xoff, xlen); in xtExtend()
1357 if ((rc = xtSearch(ip, xoff - 1, NULL, &cmp, &btstack, XT_INSERT))) in xtExtend()
1371 if ((offsetXAD(xad) + lengthXAD(xad)) != xoff) { in xtExtend()
1397 xoff = offsetXAD(xad) + MAXXLEN; in xtExtend()
1412 split.off = xoff; /* split offset */ in xtExtend()
1453 XT_PUTENTRY(xad, XAD_NEW, xoff, len, xaddr); in xtExtend()
1510 s64 nxoff, xoff; in xtUpdate() local
1545 xoff = offsetXAD(xad); in xtUpdate()
1550 if ((xoff > nxoff) || in xtUpdate()
1551 (nxoff + nxlen > xoff + xlen)) { in xtUpdate()
1562 if (xoff < nxoff) in xtUpdate()
1593 XADoffset(xad, xoff + nxlen); in xtUpdate()
1612 xoff = nxoff = offsetXAD(lxad); in xtUpdate()
1638 if (xoff == nxoff) in xtUpdate()
1678 } else if (xoff == nxoff) in xtUpdate()
1681 if (xoff >= nxoff) { in xtUpdate()
1697 XADlength(xad, nxoff - xoff); in xtUpdate()
1773 if (nxoff + nxlen == xoff + xlen) in xtUpdate()
1807 xlen = xlen - (nxoff - xoff); in xtUpdate()
1808 xoff = nxoff; in xtUpdate()
1848 xoff = xoff + nxlen; in xtUpdate()
1859 split.off = xoff; in xtUpdate()
1902 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtUpdate()
1942 struct inode *ip, int xflag, s64 xoff, s32 maxblocks, in xtAppend() argument
1966 (ulong) xoff, maxblocks, xlen, (ulong) xaddr); in xtAppend()
1976 if ((rc = xtSearch(ip, xoff, &next, &cmp, &btstack, XT_INSERT))) in xtAppend()
1988 xlen = min(xlen, (int)(next - xoff)); in xtAppend()
2039 split.off = xoff; in xtAppend()
2074 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtAppend()
2197 s64 xoff, xaddr; in xtTruncate() local
2305 xoff = offsetXAD(xad); in xtTruncate()
2307 if (teof >= xoff + xlen) { in xtTruncate()
2320 newsize = (xoff + xlen) << JFS_SBI(ip->i_sb)->l2bsize; in xtTruncate()
2335 xoff = offsetXAD(xad); in xtTruncate()
2352 if (teof < xoff) { in xtTruncate()
2369 if (teof == xoff) { in xtTruncate()
2383 else if (teof < xoff + xlen) { in xtTruncate()
2385 len = teof - xoff; in xtTruncate()
2759 s64 xoff; in xtTruncate_pmap() local
2770 xoff = (committed_size >> JFS_SBI(ip->i_sb)->l2bsize) - 1; in xtTruncate_pmap()
2771 rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0); in xtTruncate_pmap()
2815 xoff = offsetXAD(xad); in xtTruncate_pmap()
2818 return (xoff + xlen) << JFS_SBI(ip->i_sb)->l2bsize; in xtTruncate_pmap()