Lines Matching refs:sb
139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument
148 mutex_lock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free()
149 bitmap = HFS_SB(sb)->bitmap; in hfs_vbm_search_free()
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free()
152 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free()
155 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free()
162 HFS_SB(sb)->free_ablocks -= *num_bits; in hfs_vbm_search_free()
163 hfs_bitmap_dirty(sb); in hfs_vbm_search_free()
165 mutex_unlock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free()
193 int hfs_clear_vbm_bits(struct super_block *sb, u16 start, u16 count) in hfs_clear_vbm_bits() argument
205 if ((start + count) > HFS_SB(sb)->fs_ablocks) in hfs_clear_vbm_bits()
208 mutex_lock(&HFS_SB(sb)->bitmap_lock); in hfs_clear_vbm_bits()
210 curr = HFS_SB(sb)->bitmap + (start / 32); in hfs_clear_vbm_bits()
238 HFS_SB(sb)->free_ablocks += len; in hfs_clear_vbm_bits()
239 mutex_unlock(&HFS_SB(sb)->bitmap_lock); in hfs_clear_vbm_bits()
240 hfs_bitmap_dirty(sb); in hfs_clear_vbm_bits()