Lines Matching refs:uspi
60 struct ufs_sb_private_info * uspi; in ufs_free_inode() local
69 uspi = UFS_SB(sb)->s_uspi; in ufs_free_inode()
75 if (!((ino > 1) && (ino < (uspi->s_ncg * uspi->s_ipg )))) { in ufs_free_inode()
103 uspi->cs_total.cs_nifree++; in ufs_free_inode()
108 uspi->cs_total.cs_ndir--; in ufs_free_inode()
113 ubh_mark_buffer_dirty (USPI_UBH(uspi)); in ufs_free_inode()
134 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs2_init_inodes_chunk() local
135 sector_t beg = uspi->s_sbbase + in ufs2_init_inodes_chunk()
136 ufs_inotofsba(ucpi->c_cgx * uspi->s_ipg + in ufs2_init_inodes_chunk()
138 sector_t end = beg + uspi->s_fpb; in ufs2_init_inodes_chunk()
154 fs32_add(sb, &ucg->cg_u.cg_u2.cg_initediblk, uspi->s_inopb); in ufs2_init_inodes_chunk()
176 struct ufs_sb_private_info * uspi; in ufs_new_inode() local
196 uspi = sbi->s_uspi; in ufs_new_inode()
212 for ( j = 1; j < uspi->s_ncg; j <<= 1 ) { in ufs_new_inode()
214 if (i >= uspi->s_ncg) in ufs_new_inode()
215 i -= uspi->s_ncg; in ufs_new_inode()
226 for (j = 2; j < uspi->s_ncg; j++) { in ufs_new_inode()
228 if (i >= uspi->s_ncg) in ufs_new_inode()
249 bit = ubh_find_next_zero_bit (UCPI_UBH(ucpi), ucpi->c_iusedoff, uspi->s_ipg, start); in ufs_new_inode()
250 if (!(bit < uspi->s_ipg)) { in ufs_new_inode()
259 UFSD("start = %u, bit = %u, ipg = %u\n", start, bit, uspi->s_ipg); in ufs_new_inode()
268 if (uspi->fs_magic == UFS2_MAGIC) { in ufs_new_inode()
271 if (bit + uspi->s_inopb > initediblk && in ufs_new_inode()
277 uspi->cs_total.cs_nifree--; in ufs_new_inode()
282 uspi->cs_total.cs_ndir++; in ufs_new_inode()
285 ubh_mark_buffer_dirty (USPI_UBH(uspi)); in ufs_new_inode()
291 inode->i_ino = cg * uspi->s_ipg + bit; in ufs_new_inode()
309 if (uspi->fs_magic == UFS2_MAGIC) { in ufs_new_inode()
317 bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino)); in ufs_new_inode()