Lines Matching refs:xp
60 * xp - pointer to an xad. on entry, xad describes an
73 extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr)
94 if ((hint = addressXAD(xp))) {
96 nxlen = lengthXAD(xp);
106 if (offsetXAD(xp) + nxlen == xoff &&
107 abnr == ((xp->flag & XAD_NOTRECORDED) ? true : false))
161 XADaddress(xp, nxaddr);
162 XADlength(xp, nxlen);
163 XADoffset(xp, xoff);
164 xp->flag = xflag;
192 * xp - pointer to an xad. on successful exit, the xad
202 int extRealloc(struct inode *ip, s64 nxlen, xad_t * xp, bool abnr)
221 xaddr = addressXAD(xp);
222 xlen = lengthXAD(xp);
223 xoff = offsetXAD(xp);
229 if ((xp->flag & XAD_NOTRECORDED) && !abnr) {
230 xp->flag = 0;
231 if ((rc = xtUpdate(0, ip, xp)))
267 if (abnr && (!(xp->flag & XAD_NOTRECORDED)) && (nxlen > nbperpage)) {
278 xflag = xp->flag;
323 XADaddress(xp, nxaddr);
324 XADlength(xp, nxlen);
325 XADoffset(xp, xoff);
326 xp->flag = xflag;
344 * xp - pointer to the xad that is to be filled in with
351 int extHint(struct inode *ip, s64 offset, xad_t * xp)
362 XADaddress(xp, 0);
381 XADaddress(xp, xaddr);
382 XADlength(xp, xlen);
383 XADoffset(xp, prev);
388 xp->flag = xflag & XAD_NOTRECORDED;
411 int extRecord(struct inode *ip, xad_t * xp)
420 rc = xtUpdate(0, ip, xp);
443 int extFill(struct inode *ip, xad_t * xp)
446 s64 blkno = offsetXAD(xp) >> ip->i_blkbits;
451 XADaddress(xp, 0);
454 if ((rc = extAlloc(ip, nbperpage, blkno, xp, false)))
457 assert(lengthPXD(xp) == nbperpage);