Lines Matching refs:rec
526 xfs_inobt_rec_t rec; /* inode allocation record */ in xfs_dialloc() local
664 if ((error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_dialloc()
665 &rec.ir_freecount, &rec.ir_free, &i, ARCH_NOCONVERT))) in xfs_dialloc()
668 freecount += rec.ir_freecount; in xfs_dialloc()
684 (error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_dialloc()
685 &rec.ir_freecount, &rec.ir_free, &j, ARCH_NOCONVERT)) == 0 && in xfs_dialloc()
687 rec.ir_freecount > 0) { in xfs_dialloc()
732 &rec.ir_startino, in xfs_dialloc()
733 &rec.ir_freecount, in xfs_dialloc()
734 &rec.ir_free, &i, ARCH_NOCONVERT))) in xfs_dialloc()
755 rec.ir_startino - pagino; in xfs_dialloc()
766 rec = trec; in xfs_dialloc()
776 if (!useleft && rec.ir_freecount) { in xfs_dialloc()
816 &rec.ir_startino, in xfs_dialloc()
817 &rec.ir_freecount, in xfs_dialloc()
818 &rec.ir_free, &i, ARCH_NOCONVERT))) in xfs_dialloc()
837 (error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_dialloc()
838 &rec.ir_freecount, &rec.ir_free, &j, ARCH_NOCONVERT)) == 0 && in xfs_dialloc()
840 rec.ir_freecount > 0) { in xfs_dialloc()
857 &rec.ir_startino, in xfs_dialloc()
858 &rec.ir_freecount, &rec.ir_free, in xfs_dialloc()
862 if (rec.ir_freecount > 0) in xfs_dialloc()
870 offset = XFS_IALLOC_FIND_FREE(&rec.ir_free); in xfs_dialloc()
873 ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) % in xfs_dialloc()
875 ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); in xfs_dialloc()
876 XFS_INOBT_CLR_FREE(&rec, offset, ARCH_NOCONVERT); in xfs_dialloc()
877 rec.ir_freecount--; in xfs_dialloc()
878 if ((error = xfs_inobt_update(cur, rec.ir_startino, rec.ir_freecount, in xfs_dialloc()
879 rec.ir_free))) in xfs_dialloc()
893 if ((error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_dialloc()
894 &rec.ir_freecount, &rec.ir_free, &i, ARCH_NOCONVERT))) in xfs_dialloc()
897 freecount += rec.ir_freecount; in xfs_dialloc()
942 xfs_inobt_rec_t rec; /* btree record */ in xfs_difree() local
1000 if ((error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_difree()
1001 &rec.ir_freecount, &rec.ir_free, &i, ARCH_NOCONVERT))) in xfs_difree()
1004 freecount += rec.ir_freecount; in xfs_difree()
1023 if ((error = xfs_inobt_get_rec(cur, &rec.ir_startino, &rec.ir_freecount, in xfs_difree()
1024 &rec.ir_free, &i, ARCH_NOCONVERT))) { in xfs_difree()
1034 off = agino - rec.ir_startino; in xfs_difree()
1036 ASSERT(!XFS_INOBT_IS_FREE(&rec, off, ARCH_NOCONVERT)); in xfs_difree()
1040 XFS_INOBT_SET_FREE(&rec, off, ARCH_NOCONVERT); in xfs_difree()
1041 rec.ir_freecount++; in xfs_difree()
1047 (rec.ir_freecount == XFS_IALLOC_INODES(mp))) { in xfs_difree()
1050 *first_ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino); in xfs_difree()
1074 agno, XFS_INO_TO_AGBNO(mp,rec.ir_startino)), in xfs_difree()
1079 if ((error = xfs_inobt_update(cur, rec.ir_startino, rec.ir_freecount, rec.ir_free))) { in xfs_difree()
1104 &rec.ir_startino, in xfs_difree()
1105 &rec.ir_freecount, in xfs_difree()
1106 &rec.ir_free, &i, in xfs_difree()
1110 freecount += rec.ir_freecount; in xfs_difree()