Lines Matching refs:indirs
100 struct indir indirs[UFS_NIADDR + 2]; in ffs_balloc_ufs1() local
243 if ((error = ufs_getlbns(vp, lbn, indirs, &num)) != 0) in ffs_balloc_ufs1()
254 nb = dp->di_ib[indirs[0].in_off]; in ffs_balloc_ufs1()
260 pref = ffs_blkpref_ufs1(ip, lbn, -indirs[0].in_off - 1, in ffs_balloc_ufs1()
272 *lbns_remfree++ = indirs[1].in_lbn; in ffs_balloc_ufs1()
273 bp = getblk(vp, indirs[1].in_lbn, fs->fs_bsize, 0, 0, gbflags); in ffs_balloc_ufs1()
278 UFS_NDADDR + indirs[0].in_off, newb, 0, in ffs_balloc_ufs1()
289 allocib = &dp->di_ib[indirs[0].in_off]; in ffs_balloc_ufs1()
299 indirs[i].in_lbn, (int)fs->fs_bsize, NOCRED, &bp); in ffs_balloc_ufs1()
304 nb = bap[indirs[i].in_off]; in ffs_balloc_ufs1()
352 *lbns_remfree++ = indirs[i].in_lbn; in ffs_balloc_ufs1()
353 nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, 0, 0); in ffs_balloc_ufs1()
358 indirs[i - 1].in_off, nb); in ffs_balloc_ufs1()
370 bap[indirs[i - 1].in_off] = nb; in ffs_balloc_ufs1()
407 pref = ffs_blkpref_ufs1(ip, lbn, indirs[i].in_off, in ffs_balloc_ufs1()
443 indirs[i].in_off, nb, 0, nbp); in ffs_balloc_ufs1()
444 bap[indirs[i].in_off] = nb; in ffs_balloc_ufs1()
533 r = bread(vp, indirs[unwindidx].in_lbn, in ffs_balloc_ufs1()
540 bap[indirs[unwindidx].in_off] = 0; in ffs_balloc_ufs1()
604 struct indir indirs[UFS_NIADDR + 2]; in ffs_balloc_ufs2() local
863 if ((error = ufs_getlbns(vp, lbn, indirs, &num)) != 0) in ffs_balloc_ufs2()
874 nb = dp->di_ib[indirs[0].in_off]; in ffs_balloc_ufs2()
880 pref = ffs_blkpref_ufs2(ip, lbn, -indirs[0].in_off - 1, in ffs_balloc_ufs2()
892 *lbns_remfree++ = indirs[1].in_lbn; in ffs_balloc_ufs2()
893 bp = getblk(vp, indirs[1].in_lbn, fs->fs_bsize, 0, 0, in ffs_balloc_ufs2()
899 UFS_NDADDR + indirs[0].in_off, newb, 0, in ffs_balloc_ufs2()
910 allocib = &dp->di_ib[indirs[0].in_off]; in ffs_balloc_ufs2()
919 error = bread_gb(vp, indirs[i].in_lbn, (int)fs->fs_bsize, in ffs_balloc_ufs2()
925 nb = bap[indirs[i].in_off]; in ffs_balloc_ufs2()
973 *lbns_remfree++ = indirs[i].in_lbn; in ffs_balloc_ufs2()
974 nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, 0, in ffs_balloc_ufs2()
980 indirs[i - 1].in_off, nb); in ffs_balloc_ufs2()
992 bap[indirs[i - 1].in_off] = nb; in ffs_balloc_ufs2()
1029 pref = ffs_blkpref_ufs2(ip, lbn, indirs[i].in_off, in ffs_balloc_ufs2()
1065 indirs[i].in_off, nb, 0, nbp); in ffs_balloc_ufs2()
1066 bap[indirs[i].in_off] = nb; in ffs_balloc_ufs2()
1161 r = bread_gb(vp, indirs[unwindidx].in_lbn, in ffs_balloc_ufs2()
1168 bap[indirs[unwindidx].in_off] = 0; in ffs_balloc_ufs2()