Lines Matching refs:rc
90 int rc; in extAlloc() local
138 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc()
140 return (rc); in extAlloc()
144 rc = dquot_alloc_block(ip, nxlen); in extAlloc()
145 if (rc) { in extAlloc()
148 return rc; in extAlloc()
159 rc = xtExtend(0, ip, xoff, (int) nxlen, 0); in extAlloc()
161 rc = xtInsert(0, ip, xflag, xoff, (int) nxlen, &nxaddr, 0); in extAlloc()
166 if (rc) { in extAlloc()
170 return (rc); in extAlloc()
220 int rc, nbperpage = JFS_SBI(sb)->nbperpage; in extRealloc() local
244 if ((rc = xtUpdate(0, ip, xp))) in extRealloc()
256 if ((rc = extBrealloc(ip, xaddr, xlen, &nxlen, &nxaddr))) in extRealloc()
260 rc = dquot_alloc_block(ip, nxlen); in extRealloc()
261 if (rc) { in extRealloc()
264 return rc; in extRealloc()
300 if ((rc = xtExtend(0, ip, xoff + xlen, (int) nextend, 0))) { in extRealloc()
311 if ((rc = xtTailgate(0, ip, xoff, (int) ntail, nxaddr, 0))) { in extRealloc()
344 return (rc); in extRealloc()
369 int rc = 0; in extHint() local
387 rc = xtLookup(ip, prev, nbperpage, &xflag, &xaddr, &xlen, 0); in extHint()
389 if ((rc == 0) && xlen) { in extHint()
392 rc = -EIO; in extHint()
403 rc = 0; in extHint()
406 return (rc); in extHint()
426 int rc; in extRecord() local
433 rc = xtUpdate(0, ip, xp); in extRecord()
436 return rc; in extRecord()
458 int rc, nbperpage = JFS_SBI(ip->i_sb)->nbperpage; in extFill() local
467 if ((rc = extAlloc(ip, nbperpage, blkno, xp, false))) in extFill()
468 return (rc); in extFill()
514 int rc, nbperpage = sbi->nbperpage; in extBalloc() local
531 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
535 if (rc != -ENOSPC) in extBalloc()
536 return (rc); in extBalloc()
543 return (rc); in extBalloc()
605 int rc; in extBrealloc() local
608 if ((rc = dbExtend(ip, blkno, nblks, *newnblks - nblks)) == 0) { in extBrealloc()
612 if (rc != -ENOSPC) in extBrealloc()
613 return (rc); in extBrealloc()