Searched refs:ipref (Results 1 – 2 of 2) sorted by relevance
| /openbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_alloc.c | 138 ufsino_t ino, ipref; in ext2fs_inode_alloc() local 151 ipref = cg * fs->e2fs.e2fs_ipg + 1; in ext2fs_inode_alloc() 152 ino = ext2fs_hashalloc(pip, cg, ipref, mode, ext2fs_nodealloccg); in ext2fs_inode_alloc() 393 ext2fs_nodealloccg(struct inode *ip, int cg, ufsino_t ipref, int mode) in ext2fs_nodealloccg() argument 400 ipref--; /* to avoid a lot of (ipref -1) */ in ext2fs_nodealloccg() 411 if (ipref) { in ext2fs_nodealloccg() 412 ipref %= fs->e2fs.e2fs_ipg; in ext2fs_nodealloccg() 413 if (isclr(ibp, ipref)) in ext2fs_nodealloccg() 416 start = ipref / NBBY; in ext2fs_nodealloccg() 417 len = howmany(fs->e2fs.e2fs_ipg - ipref, NBBY); in ext2fs_nodealloccg() [all …]
|
| /openbsd/src/sys/ufs/ffs/ |
| D | ffs_alloc.c | 362 ufsino_t ino, ipref; in ffs_inode_alloc() local 372 ipref = ffs_dirpref(pip); in ffs_inode_alloc() 374 ipref = pip->i_number; in ffs_inode_alloc() 375 if (ipref >= fs->fs_ncg * fs->fs_ipg) in ffs_inode_alloc() 376 ipref = 0; in ffs_inode_alloc() 377 cg = ino_to_cg(fs, ipref); in ffs_inode_alloc() 390 ino = (ufsino_t)ffs_hashalloc(pip, cg, ipref, mode, ffs_nodealloccg); in ffs_inode_alloc() 1085 ffs_nodealloccg(struct inode *ip, u_int cg, daddr_t ipref, int mode) in ffs_nodealloccg() argument 1126 if (ipref) { in ffs_nodealloccg() 1127 ipref %= fs->fs_ipg; in ffs_nodealloccg() [all …]
|