Lines Matching refs:nxlen
76 s64 nxlen, nxaddr, xoff, hint, xaddr = 0; in extAlloc() local
96 nxlen = lengthXAD(xp); in extAlloc()
106 if (offsetXAD(xp) + nxlen == xoff && in extAlloc()
108 xaddr = hint + nxlen; in extAlloc()
111 hint += (nxlen - 1); in extAlloc()
124 nxlen = xlen; in extAlloc()
125 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc()
131 rc = dquot_alloc_block(ip, nxlen); in extAlloc()
133 dbFree(ip, nxaddr, (s64) nxlen); in extAlloc()
146 rc = xtExtend(0, ip, xoff, (int) nxlen, 0); in extAlloc()
148 rc = xtInsert(0, ip, xflag, xoff, (int) nxlen, &nxaddr, 0); in extAlloc()
154 dbFree(ip, nxaddr, nxlen); in extAlloc()
155 dquot_free_block(ip, nxlen); in extAlloc()
162 XADlength(xp, nxlen); in extAlloc()
202 int extRealloc(struct inode *ip, s64 nxlen, xad_t * xp, bool abnr) in extRealloc() argument
215 if (nxlen > MAXXLEN) in extRealloc()
216 nxlen = MAXXLEN; in extRealloc()
243 if ((rc = extBrealloc(ip, xaddr, xlen, &nxlen, &nxaddr))) in extRealloc()
247 rc = dquot_alloc_block(ip, nxlen); in extRealloc()
249 dbFree(ip, nxaddr, (s64) nxlen); in extRealloc()
254 delta = nxlen - xlen; in extRealloc()
267 if (abnr && (!(xp->flag & XAD_NOTRECORDED)) && (nxlen > nbperpage)) { in extRealloc()
270 ninsert = nxlen - nbperpage; in extRealloc()
274 ntail = nxlen; in extRealloc()
289 dquot_free_block(ip, nxlen); in extRealloc()
299 dbFree(ip, nxaddr, nxlen); in extRealloc()
300 dquot_free_block(ip, nxlen); in extRealloc()
317 nxlen = ntail; in extRealloc()
324 XADlength(xp, nxlen); in extRealloc()