Home | History | Annotate | Download | only in ffs

Lines Matching defs:ipref

574 	ino_t ino, ipref;
593 ipref = ffs_dirpref(pip);
595 ipref = pip->i_number;
596 if (ipref >= fs->fs_ncg * fs->fs_ipg)
597 ipref = 0;
598 cg = ino_to_cg(fs, ipref);
610 ino = (ino_t)ffs_hashalloc(pip, cg, ipref, mode, 0, 0, ffs_nodealloccg);
1262 ffs_nodealloccg(struct inode *ip, u_int cg, daddr_t ipref, int mode, int realsize,
1339 if (ipref) {
1340 ipref %= fs->fs_ipg;
1342 if (ipref < maxiblk && isclr(inosused, ipref))
1372 ipref = i * NBBY + ffs(map) - 1;
1374 cgp->cg_irotor = ufs_rw32(ipref, needswap);
1377 KASSERTMSG(ipref < maxiblk, "%s: allocation botch: cg=%d attempt to "
1380 __func__, cg, (int)ipref, maxiblk, cgp->cg_niblk);
1382 UFS_WAPBL_REGISTER_INODE(ip->i_ump->um_mountp, cg * fs->fs_ipg + ipref,
1405 setbit(inosused, ipref);
1421 return ((ino_t)(cg * fs->fs_ipg + ipref));