• Home
  • Raw
  • Download

Lines Matching refs:rec

124 	union xfs_btree_rec	rec;  in xfs_inobt_update()  local
126 rec.inobt.ir_startino = cpu_to_be32(ino); in xfs_inobt_update()
127 rec.inobt.ir_freecount = cpu_to_be32(fcnt); in xfs_inobt_update()
128 rec.inobt.ir_free = cpu_to_be64(free); in xfs_inobt_update()
129 return xfs_btree_update(cur, &rec); in xfs_inobt_update()
143 union xfs_btree_rec *rec; in xfs_inobt_get_rec() local
146 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_inobt_get_rec()
148 *ino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_get_rec()
149 *fcnt = be32_to_cpu(rec->inobt.ir_freecount); in xfs_inobt_get_rec()
150 *free = be64_to_cpu(rec->inobt.ir_free); in xfs_inobt_get_rec()
597 xfs_inobt_rec_incore_t rec; /* inode allocation record */ in xfs_dialloc() local
734 if ((error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_dialloc()
735 &rec.ir_freecount, &rec.ir_free, &i))) in xfs_dialloc()
738 freecount += rec.ir_freecount; in xfs_dialloc()
754 (error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_dialloc()
755 &rec.ir_freecount, &rec.ir_free, &j)) == 0 && in xfs_dialloc()
757 rec.ir_freecount > 0) { in xfs_dialloc()
802 &rec.ir_startino, in xfs_dialloc()
803 &rec.ir_freecount, in xfs_dialloc()
804 &rec.ir_free, &i))) in xfs_dialloc()
825 rec.ir_startino - pagino; in xfs_dialloc()
836 rec = trec; in xfs_dialloc()
846 if (!useleft && rec.ir_freecount) { in xfs_dialloc()
886 &rec.ir_startino, in xfs_dialloc()
887 &rec.ir_freecount, in xfs_dialloc()
888 &rec.ir_free, &i))) in xfs_dialloc()
907 (error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_dialloc()
908 &rec.ir_freecount, &rec.ir_free, &j)) == 0 && in xfs_dialloc()
910 rec.ir_freecount > 0) { in xfs_dialloc()
927 &rec.ir_startino, in xfs_dialloc()
928 &rec.ir_freecount, &rec.ir_free, in xfs_dialloc()
932 if (rec.ir_freecount > 0) in xfs_dialloc()
940 offset = xfs_ialloc_find_free(&rec.ir_free); in xfs_dialloc()
943 ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) % in xfs_dialloc()
945 ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); in xfs_dialloc()
946 XFS_INOBT_CLR_FREE(&rec, offset); in xfs_dialloc()
947 rec.ir_freecount--; in xfs_dialloc()
948 if ((error = xfs_inobt_update(cur, rec.ir_startino, rec.ir_freecount, in xfs_dialloc()
949 rec.ir_free))) in xfs_dialloc()
963 if ((error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_dialloc()
964 &rec.ir_freecount, &rec.ir_free, &i))) in xfs_dialloc()
967 freecount += rec.ir_freecount; in xfs_dialloc()
1012 xfs_inobt_rec_incore_t rec; /* btree record */ in xfs_difree() local
1072 if ((error = xfs_inobt_get_rec(cur, &rec.ir_startino, in xfs_difree()
1073 &rec.ir_freecount, &rec.ir_free, &i))) in xfs_difree()
1076 freecount += rec.ir_freecount; in xfs_difree()
1095 if ((error = xfs_inobt_get_rec(cur, &rec.ir_startino, &rec.ir_freecount, in xfs_difree()
1096 &rec.ir_free, &i))) { in xfs_difree()
1106 off = agino - rec.ir_startino; in xfs_difree()
1108 ASSERT(!XFS_INOBT_IS_FREE(&rec, off)); in xfs_difree()
1112 XFS_INOBT_SET_FREE(&rec, off); in xfs_difree()
1113 rec.ir_freecount++; in xfs_difree()
1119 (rec.ir_freecount == XFS_IALLOC_INODES(mp))) { in xfs_difree()
1122 *first_ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino); in xfs_difree()
1146 agno, XFS_INO_TO_AGBNO(mp,rec.ir_startino)), in xfs_difree()
1151 if ((error = xfs_inobt_update(cur, rec.ir_startino, rec.ir_freecount, rec.ir_free))) { in xfs_difree()
1176 &rec.ir_startino, in xfs_difree()
1177 &rec.ir_freecount, in xfs_difree()
1178 &rec.ir_free, &i))) in xfs_difree()
1181 freecount += rec.ir_freecount; in xfs_difree()