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()
167 struct ext2_sb_info *sbi = EXT2_SB(sb); in group_adjust_blocks()
333 struct rb_root *root = &EXT2_SB(sb)->s_rsv_window_root; in ext2_rsv_window_add()
375 rb_erase(&rsv->rsv_node, &EXT2_SB(sb)->s_rsv_window_root); in rsv_window_remove()
457 spinlock_t *rsv_lock = &EXT2_SB(inode->i_sb)->s_rsv_window_lock; in ext2_discard_reservation()
487 struct ext2_sb_info * sbi = EXT2_SB(sb); in ext2_free_blocks()
702 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), in ext2_try_to_allocate()
881 struct rb_root *fs_rsv_root = &EXT2_SB(sb)->s_rsv_window_root; in alloc_new_reservation()
884 spinlock_t *rsv_lock = &EXT2_SB(sb)->s_rsv_window_lock; in alloc_new_reservation()
1021 spinlock_t *rsv_lock = &EXT2_SB(sb)->s_rsv_window_lock; in try_to_extend_reservation()
1136 rsv_window_dump(&EXT2_SB(sb)->s_rsv_window_root, 1); in ext2_try_to_allocate_with_rsv()
1242 sbi = EXT2_SB(sb); in ext2_new_blocks()
1243 es = EXT2_SB(sb)->s_es; in ext2_new_blocks()
1309 ngroups = EXT2_SB(sb)->s_groups_count; in ext2_new_blocks()
1378 EXT2_SB(sb)->s_itb_per_group) || in ext2_new_blocks()
1380 EXT2_SB(sb)->s_itb_per_group)) { in ext2_new_blocks()
1459 es = EXT2_SB(sb)->s_es; in ext2_count_free_blocks()
1463 for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) { in ext2_count_free_blocks()
1484 for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) { in ext2_count_free_blocks()
1538 return ext2_bg_has_super(sb, group) ? EXT2_SB(sb)->s_gdb_count : 0; in ext2_bg_num_gdb()