Lines Matching refs:EXT2_SB
48 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_get_group_desc()
103 offset + EXT2_SB(sb)->s_itb_per_group, in ext2_valid_block_bitmap()
105 if (next_zero_bit >= offset + EXT2_SB(sb)->s_itb_per_group) in ext2_valid_block_bitmap()
166 struct ext2_sb_info *sbi = EXT2_SB(sb); in group_adjust_blocks()
332 struct rb_root *root = &EXT2_SB(sb)->s_rsv_window_root; in ext2_rsv_window_add()
374 rb_erase(&rsv->rsv_node, &EXT2_SB(sb)->s_rsv_window_root); in rsv_window_remove()
456 spinlock_t *rsv_lock = &EXT2_SB(inode->i_sb)->s_rsv_window_lock; in ext2_discard_reservation()
486 struct ext2_sb_info * sbi = EXT2_SB(sb); in ext2_free_blocks()
716 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal, in ext2_try_to_allocate()
731 && !ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), in ext2_try_to_allocate()
905 struct rb_root *fs_rsv_root = &EXT2_SB(sb)->s_rsv_window_root; in alloc_new_reservation()
908 spinlock_t *rsv_lock = &EXT2_SB(sb)->s_rsv_window_lock; in alloc_new_reservation()
1045 spinlock_t *rsv_lock = &EXT2_SB(sb)->s_rsv_window_lock; in try_to_extend_reservation()
1160 rsv_window_dump(&EXT2_SB(sb)->s_rsv_window_root, 1); in ext2_try_to_allocate_with_rsv()
1267 sbi = EXT2_SB(sb); in ext2_new_blocks()
1268 es = EXT2_SB(sb)->s_es; in ext2_new_blocks()
1327 ngroups = EXT2_SB(sb)->s_groups_count; in ext2_new_blocks()
1396 EXT2_SB(sb)->s_itb_per_group) || in ext2_new_blocks()
1398 EXT2_SB(sb)->s_itb_per_group)) { in ext2_new_blocks()
1476 es = EXT2_SB(sb)->s_es; in ext2_count_free_blocks()
1480 for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) { in ext2_count_free_blocks()
1501 for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) { in ext2_count_free_blocks()
1555 return ext2_bg_has_super(sb, group) ? EXT2_SB(sb)->s_gdb_count : 0; in ext2_bg_num_gdb()