Lines Matching refs:uspi
59 struct ufs_sb_private_info * uspi;
69 uspi = UFS_SB(sb)->s_uspi;
70 usb1 = ubh_get_usb_first(uspi);
76 if (!((ino > 1) && (ino < (uspi->s_ncg * uspi->s_ipg )))) {
104 uspi->cs_total.cs_nifree++;
109 uspi->cs_total.cs_ndir--;
114 ubh_mark_buffer_dirty (USPI_UBH(uspi));
135 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
136 sector_t beg = uspi->s_sbbase +
137 ufs_inotofsba(ucpi->c_cgx * uspi->s_ipg +
139 sector_t end = beg + uspi->s_fpb;
155 fs32_add(sb, &ucg->cg_u.cg_u2.cg_initediblk, uspi->s_inopb);
177 struct ufs_sb_private_info * uspi;
197 uspi = sbi->s_uspi;
198 usb1 = ubh_get_usb_first(uspi);
214 for ( j = 1; j < uspi->s_ncg; j <<= 1 ) {
216 if (i >= uspi->s_ncg)
217 i -= uspi->s_ncg;
228 for (j = 2; j < uspi->s_ncg; j++) {
230 if (i >= uspi->s_ncg)
251 bit = ubh_find_next_zero_bit (UCPI_UBH(ucpi), ucpi->c_iusedoff, uspi->s_ipg, start);
252 if (!(bit < uspi->s_ipg)) {
261 UFSD("start = %u, bit = %u, ipg = %u\n", start, bit, uspi->s_ipg);
270 if (uspi->fs_magic == UFS2_MAGIC) {
273 if (bit + uspi->s_inopb > initediblk &&
279 uspi->cs_total.cs_nifree--;
284 uspi->cs_total.cs_ndir++;
287 ubh_mark_buffer_dirty (USPI_UBH(uspi));
293 inode->i_ino = cg * uspi->s_ipg + bit;
308 if (uspi->fs_magic == UFS2_MAGIC) {
316 bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino));