Lines Matching refs:group

273 			unsigned int group, struct super_block * sb)  in goal_in_my_reservation()  argument
277 group_first_block = ext3_group_first_block_no(sb, group); in goal_in_my_reservation()
876 ext3_try_to_allocate(struct super_block *sb, handle_t *handle, int group, in ext3_try_to_allocate() argument
886 group_first_block = ext3_group_first_block_no(sb, group); in ext3_try_to_allocate()
927 if (!claim_block(sb_bgl_lock(EXT3_SB(sb), group), in ext3_try_to_allocate()
943 && claim_block(sb_bgl_lock(EXT3_SB(sb), group), in ext3_try_to_allocate()
1114 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
1124 group_first_block = ext3_group_first_block_no(sb, group); in alloc_new_reservation()
1316 unsigned int group, struct buffer_head *bitmap_bh, in ext3_try_to_allocate_with_rsv() argument
1347 ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, in ext3_try_to_allocate_with_rsv()
1357 group_first_block = ext3_group_first_block_no(sb, group); in ext3_try_to_allocate_with_rsv()
1378 grp_goal, group, sb)) { in ext3_try_to_allocate_with_rsv()
1382 group, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1387 grp_goal, group, sb)) in ext3_try_to_allocate_with_rsv()
1403 ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, in ext3_try_to_allocate_with_rsv()
1839 static int ext3_group_sparse(int group) in ext3_group_sparse() argument
1841 if (group <= 1) in ext3_group_sparse()
1843 if (!(group & 1)) in ext3_group_sparse()
1845 return (test_root(group, 7) || test_root(group, 5) || in ext3_group_sparse()
1846 test_root(group, 3)); in ext3_group_sparse()
1857 int ext3_bg_has_super(struct super_block *sb, int group) in ext3_bg_has_super() argument
1861 !ext3_group_sparse(group)) in ext3_bg_has_super()
1866 static unsigned long ext3_bg_num_gdb_meta(struct super_block *sb, int group) in ext3_bg_num_gdb_meta() argument
1868 unsigned long metagroup = group / EXT3_DESC_PER_BLOCK(sb); in ext3_bg_num_gdb_meta()
1872 if (group == first || group == first + 1 || group == last) in ext3_bg_num_gdb_meta()
1877 static unsigned long ext3_bg_num_gdb_nometa(struct super_block *sb, int group) in ext3_bg_num_gdb_nometa() argument
1879 return ext3_bg_has_super(sb, group) ? EXT3_SB(sb)->s_gdb_count : 0; in ext3_bg_num_gdb_nometa()
1891 unsigned long ext3_bg_num_gdb(struct super_block *sb, int group) in ext3_bg_num_gdb() argument
1895 unsigned long metagroup = group / EXT3_DESC_PER_BLOCK(sb); in ext3_bg_num_gdb()
1899 return ext3_bg_num_gdb_nometa(sb,group); in ext3_bg_num_gdb()
1901 return ext3_bg_num_gdb_meta(sb,group); in ext3_bg_num_gdb()
1921 unsigned int group, in ext3_trim_all_free() argument
1940 bitmap_bh = read_block_bitmap(sb, group); in ext3_trim_all_free()
1951 gdp = ext3_get_group_desc(sb, group, &gdp_bh); in ext3_trim_all_free()
1977 && claim_block(sb_bgl_lock(sbi, group), in ext3_trim_all_free()
1987 ext3_group_first_block_no(sb, group); in ext3_trim_all_free()
1990 spin_lock(sb_bgl_lock(sbi, group)); in ext3_trim_all_free()
1992 spin_unlock(sb_bgl_lock(sbi, group)); in ext3_trim_all_free()
2013 if (!ext3_clear_bit_atomic(sb_bgl_lock(sbi, group), in ext3_trim_all_free()
2025 spin_lock(sb_bgl_lock(sbi, group)); in ext3_trim_all_free()
2027 spin_unlock(sb_bgl_lock(sbi, group)); in ext3_trim_all_free()
2063 count, group); in ext3_trim_all_free()
2088 unsigned long group, first_group, last_group; in ext3_trim_fs() local
2123 for (group = first_group; group <= last_group; group++) { in ext3_trim_fs()
2124 gdp = ext3_get_group_desc(sb, group, NULL); in ext3_trim_fs()
2134 if (group == last_group) in ext3_trim_fs()
2138 ret = ext3_trim_all_free(sb, group, first_block, in ext3_trim_fs()