Lines Matching refs:UFS_SB
49 uspi = UFS_SB(sb)->s_uspi; in ufs_free_fragments()
57 mutex_lock(&UFS_SB(sb)->s_lock); in ufs_free_fragments()
90 fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count); in ufs_free_fragments()
101 fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, uspi->s_fpb); in ufs_free_fragments()
102 if ((UFS_SB(sb)->s_flags & UFS_CG_MASK) == UFS_CG_44BSD) in ufs_free_fragments()
106 fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nbfree, 1); in ufs_free_fragments()
122 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_fragments()
127 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_fragments()
145 uspi = UFS_SB(sb)->s_uspi; in ufs_free_blocks()
157 mutex_lock(&UFS_SB(sb)->s_lock); in ufs_free_blocks()
190 if ((UFS_SB(sb)->s_flags & UFS_CG_MASK) == UFS_CG_44BSD) in ufs_free_blocks()
195 fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nbfree, 1); in ufs_free_blocks()
218 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_blocks()
223 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_blocks()
355 uspi = UFS_SB(sb)->s_uspi; in ufs_new_fragments()
359 mutex_lock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
380 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
385 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
392 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
402 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
430 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
447 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
468 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
485 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_new_fragments()
517 uspi = UFS_SB(sb)->s_uspi; in ufs_add_fragments()
521 if (fs32_to_cpu(sb, UFS_SB(sb)->fs_cs(cgno).cs_nffree) < count) in ufs_add_fragments()
561 fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count); in ufs_add_fragments()
576 ucg = (struct ufs_cylinder_group *) UFS_SB(sb)->s_ucg[cgno]->b_data; \
597 uspi = UFS_SB(sb)->s_uspi; in ufs_alloc_fragments()
663 fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, i); in ufs_alloc_fragments()
678 fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count); in ufs_alloc_fragments()
708 uspi = UFS_SB(sb)->s_uspi; in ufs_alloccg_block()
736 if ((UFS_SB(sb)->s_flags & UFS_CG_MASK) == UFS_CG_44BSD) in ufs_alloccg_block()
741 fs32_sub(sb, &UFS_SB(sb)->fs_cs(ucpi->c_cgx).cs_nbfree, 1); in ufs_alloccg_block()
805 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_bitmap_search()
873 uspi = UFS_SB(sb)->s_uspi; in ufs_clusteracct()