• Home
  • Raw
  • Download

Lines Matching refs:xoff

104 static int xtSearch(struct inode *ip, s64 xoff, s64 *next, int *cmpp,
144 s64 next, size, xoff, xend; in xtLookup() local
191 xoff = offsetXAD(xad); in xtLookup()
193 xend = xoff + xlen; in xtLookup()
198 *paddr = xaddr + (lstart - xoff); in xtLookup()
226 static int xtSearch(struct inode *ip, s64 xoff, s64 *nextp, in xtSearch() argument
283 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
284 if (xoff >= t64) { in xtSearch()
299 if (xoff < t64 + lengthXAD(xad)) { in xtSearch()
300 if (xoff >= t64) { in xtSearch()
371 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearch()
525 struct inode *ip, int xflag, s64 xoff, s32 xlen, s64 * xaddrp, in xtInsert() argument
542 jfs_info("xtInsert: nxoff:0x%lx nxlen:0x%x", (ulong) xoff, xlen); in xtInsert()
552 if ((rc = xtSearch(ip, xoff, &next, &cmp, &btstack, XT_INSERT))) in xtInsert()
560 if ((cmp == 0) || (next && (xlen > next - xoff))) { in xtInsert()
600 split.off = xoff; in xtInsert()
634 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtInsert()
1348 struct inode *ip, s64 xoff, /* delta extent offset */ in xtExtend() argument
1365 jfs_info("xtExtend: nxoff:0x%lx nxlen:0x%x", (ulong) xoff, xlen); in xtExtend()
1368 if ((rc = xtSearch(ip, xoff - 1, NULL, &cmp, &btstack, XT_INSERT))) in xtExtend()
1382 if ((offsetXAD(xad) + lengthXAD(xad)) != xoff) { in xtExtend()
1408 xoff = offsetXAD(xad) + MAXXLEN; in xtExtend()
1423 split.off = xoff; /* split offset */ in xtExtend()
1464 XT_PUTENTRY(xad, XAD_NEW, xoff, len, xaddr); in xtExtend()
1510 struct inode *ip, s64 xoff, /* split/new extent offset */ in xtTailgate() argument
1535 if ((rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, XT_INSERT))) in xtTailgate()
1570 if ((llen = xoff - offsetXAD(xad)) == 0) in xtTailgate()
1588 split.off = xoff; /* split offset */ in xtTailgate()
1629 XT_PUTENTRY(xad, XAD_NEW, xoff, xlen, xaddr); in xtTailgate()
1663 XT_PUTENTRY(xad, XAD_NEW, xoff, xlen, xaddr); in xtTailgate()
1704 s64 nxoff, xoff; in xtUpdate() local
1739 xoff = offsetXAD(xad); in xtUpdate()
1744 if ((xoff > nxoff) || in xtUpdate()
1745 (nxoff + nxlen > xoff + xlen)) { in xtUpdate()
1757 if (xoff < nxoff) in xtUpdate()
1775 if (xoff < nxoff) in xtUpdate()
1807 XADoffset(xad, xoff + nxlen); in xtUpdate()
1826 xoff = nxoff = offsetXAD(lxad); in xtUpdate()
1852 if (xoff == nxoff) in xtUpdate()
1892 } else if (xoff == nxoff) in xtUpdate()
1895 if (xoff >= nxoff) { in xtUpdate()
1912 XADlength(xad, nxoff - xoff); in xtUpdate()
1988 if (nxoff + nxlen == xoff + xlen) in xtUpdate()
2022 xlen = xlen - (nxoff - xoff); in xtUpdate()
2023 xoff = nxoff; in xtUpdate()
2063 xoff = xoff + nxlen; in xtUpdate()
2074 split.off = xoff; in xtUpdate()
2117 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtUpdate()
2157 struct inode *ip, int xflag, s64 xoff, s32 maxblocks, in xtAppend() argument
2181 (ulong) xoff, maxblocks, xlen, (ulong) xaddr); in xtAppend()
2191 if ((rc = xtSearch(ip, xoff, &next, &cmp, &btstack, XT_INSERT))) in xtAppend()
2203 xlen = min(xlen, (int)(next - xoff)); in xtAppend()
2254 split.off = xoff; in xtAppend()
2289 XT_PUTENTRY(xad, xflag, xoff, xlen, xaddr); in xtAppend()
2326 int xtDelete(tid_t tid, struct inode *ip, s64 xoff, s32 xlen, int flag) in xtDelete() argument
2341 if ((rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0))) in xtDelete()
2558 s64 xoff, xsize; in xtRelocate() local
2572 xoff = offsetXAD(oxad); in xtRelocate()
2577 offset = xoff << JFS_SBI(ip->i_sb)->l2bsize; in xtRelocate()
2582 xtype, (ulong) xoff, xlen, (ulong) oxaddr, (ulong) nxaddr); in xtRelocate()
2590 rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0); in xtRelocate()
2659 offset = xoff << JFS_SBI(ip->i_sb)->l2bsize; in xtRelocate()
2696 if ((rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0))) in xtRelocate()
2882 s64 xoff, xaddr; in xtSearchNode() local
2894 xoff = offsetXAD(xad); in xtSearchNode()
2932 XT_CMP(cmp, xoff, &p->xad[index], t64); in xtSearchNode()
2940 xoff == offsetXAD(&p->xad[index])) { in xtSearchNode()
3158 s64 xoff, xaddr; in xtTruncate() local
3266 xoff = offsetXAD(xad); in xtTruncate()
3268 if (teof >= xoff + xlen) { in xtTruncate()
3281 newsize = (xoff + xlen) << JFS_SBI(ip->i_sb)->l2bsize; in xtTruncate()
3296 xoff = offsetXAD(xad); in xtTruncate()
3313 if (teof < xoff) { in xtTruncate()
3330 if (teof == xoff) { in xtTruncate()
3344 else if (teof < xoff + xlen) { in xtTruncate()
3346 len = teof - xoff; in xtTruncate()
3720 s64 xoff; in xtTruncate_pmap() local
3731 xoff = (committed_size >> JFS_SBI(ip->i_sb)->l2bsize) - 1; in xtTruncate_pmap()
3732 rc = xtSearch(ip, xoff, NULL, &cmp, &btstack, 0); in xtTruncate_pmap()
3776 xoff = offsetXAD(xad); in xtTruncate_pmap()
3779 return (xoff + xlen) << JFS_SBI(ip->i_sb)->l2bsize; in xtTruncate_pmap()