Lines Matching refs:nxlen
89 s64 nxlen, nxaddr, xoff, hint, xaddr = 0;
109 nxlen = lengthXAD(xp);
119 if (offsetXAD(xp) + nxlen == xoff &&
121 xaddr = hint + nxlen;
124 hint += (nxlen - 1);
137 nxlen = xlen;
138 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) {
144 rc = dquot_alloc_block(ip, nxlen);
146 dbFree(ip, nxaddr, (s64) nxlen);
159 rc = xtExtend(0, ip, xoff, (int) nxlen, 0);
161 rc = xtInsert(0, ip, xflag, xoff, (int) nxlen, &nxaddr, 0);
167 dbFree(ip, nxaddr, nxlen);
168 dquot_free_block(ip, nxlen);
175 XADlength(xp, nxlen);
215 int extRealloc(struct inode *ip, s64 nxlen, xad_t * xp, bool abnr)
228 if (nxlen > MAXXLEN)
229 nxlen = MAXXLEN;
256 if ((rc = extBrealloc(ip, xaddr, xlen, &nxlen, &nxaddr)))
260 rc = dquot_alloc_block(ip, nxlen);
262 dbFree(ip, nxaddr, (s64) nxlen);
267 delta = nxlen - xlen;
280 if (abnr && (!(xp->flag & XAD_NOTRECORDED)) && (nxlen > nbperpage)) {
283 ninsert = nxlen - nbperpage;
287 ntail = nxlen;
302 dquot_free_block(ip, nxlen);
312 dbFree(ip, nxaddr, nxlen);
313 dquot_free_block(ip, nxlen);
330 nxlen = ntail;
337 XADlength(xp, nxlen);