Searched refs:indirs (Results 1 – 4 of 4) sorted by relevance
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_balloc.c | 83 struct indir indirs[UFS_NIADDR + 2]; in ffs_balloc_ufs1() local 206 if ((error = ufs_getlbns(ip, lbn, indirs, &num)) != 0) in ffs_balloc_ufs1() 219 nb = ufs_rw32(ip->i_ffs1_ib[indirs[0].in_off], needswap); in ffs_balloc_ufs1() 229 bp = getblk((void *)ip->i_devvp, indirs[1].in_lbn, in ffs_balloc_ufs1() 239 allocib = &ip->i_ffs1_ib[indirs[0].in_off]; in ffs_balloc_ufs1() 248 error = bread((void *)ip->i_devvp, indirs[i].in_lbn, in ffs_balloc_ufs1() 255 nb = ufs_rw32(bap[indirs[i].in_off], needswap); in ffs_balloc_ufs1() 272 nbp = getblk((void *)ip->i_devvp, indirs[i].in_lbn, in ffs_balloc_ufs1() 285 bap[indirs[i - 1].in_off] = ufs_rw32(nb, needswap); in ffs_balloc_ufs1() 295 pref = ffs_blkpref_ufs1(ip, lbn, indirs[num].in_off, &bap[0]); in ffs_balloc_ufs1() [all …]
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_balloc.c | 105 struct indir indirs[EXT2_NIADDR + 2]; in ext2_balloc() local 175 if ((error = ext2_getlbns(vp, lbn, indirs, &num)) != 0) in ext2_balloc() 185 nb = ip->i_ib[indirs[0].in_off]; in ext2_balloc() 188 pref = ext2_blkpref(ip, lbn, indirs[0].in_off + in ext2_balloc() 196 bp = getblk(vp, indirs[1].in_lbn, fs->e2fs_bsize, 0, 0, 0); in ext2_balloc() 207 ip->i_ib[indirs[0].in_off] = newb; in ext2_balloc() 215 indirs[i].in_lbn, (int)fs->e2fs_bsize, NOCRED, &bp); in ext2_balloc() 220 nb = le32toh(bap[indirs[i].in_off]); in ext2_balloc() 230 pref = ext2_blkpref(ip, lbn, indirs[i].in_off, bap, in ext2_balloc() 240 nbp = getblk(vp, indirs[i].in_lbn, fs->e2fs_bsize, 0, 0, 0); in ext2_balloc() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_balloc.c | 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() [all …]
|
H A D | ffs_snapshot.c | 1146 struct indir indirs[UFS_NIADDR + 2]; in indiracct_ufs1() local 1155 if ((error = ufs_getlbns(cancelvp, rlbn, indirs, &num)) != 0) in indiracct_ufs1() 1157 if (lbn != indirs[num - 1 - level].in_lbn || num < 2) in indiracct_ufs1() 1430 struct indir indirs[UFS_NIADDR + 2]; in indiracct_ufs2() local 1439 if ((error = ufs_getlbns(cancelvp, rlbn, indirs, &num)) != 0) in indiracct_ufs2() 1441 if (lbn != indirs[num - 1 - level].in_lbn || num < 2) in indiracct_ufs2()
|