Lines Matching refs:desc
47 struct ext2_group_desc * desc; in ext2_get_group_desc() local
67 desc = (struct ext2_group_desc *) sbi->s_group_desc[group_desc]->b_data; in ext2_get_group_desc()
70 return desc + offset; in ext2_get_group_desc()
74 struct ext2_group_desc *desc, in ext2_valid_block_bitmap() argument
86 bitmap_blk = le32_to_cpu(desc->bg_block_bitmap); in ext2_valid_block_bitmap()
93 bitmap_blk = le32_to_cpu(desc->bg_inode_bitmap); in ext2_valid_block_bitmap()
100 bitmap_blk = le32_to_cpu(desc->bg_inode_table); in ext2_valid_block_bitmap()
126 struct ext2_group_desc * desc; in read_block_bitmap() local
130 desc = ext2_get_group_desc(sb, block_group, NULL); in read_block_bitmap()
131 if (!desc) in read_block_bitmap()
133 bitmap_blk = le32_to_cpu(desc->bg_block_bitmap); in read_block_bitmap()
139 block_group, le32_to_cpu(desc->bg_block_bitmap)); in read_block_bitmap()
150 block_group, le32_to_cpu(desc->bg_block_bitmap)); in read_block_bitmap()
154 ext2_valid_block_bitmap(sb, desc, block_group, bh); in read_block_bitmap()
163 struct ext2_group_desc *desc, struct buffer_head *bh, int count) in group_adjust_blocks() argument
170 free_blocks = le16_to_cpu(desc->bg_free_blocks_count); in group_adjust_blocks()
171 desc->bg_free_blocks_count = cpu_to_le16(free_blocks + count); in group_adjust_blocks()
487 struct ext2_group_desc * desc; in ext2_free_blocks() local
519 desc = ext2_get_group_desc (sb, block_group, &bh2); in ext2_free_blocks()
520 if (!desc) in ext2_free_blocks()
523 if (in_range (le32_to_cpu(desc->bg_block_bitmap), block, count) || in ext2_free_blocks()
524 in_range (le32_to_cpu(desc->bg_inode_bitmap), block, count) || in ext2_free_blocks()
525 in_range (block, le32_to_cpu(desc->bg_inode_table), in ext2_free_blocks()
527 in_range (block + count - 1, le32_to_cpu(desc->bg_inode_table), in ext2_free_blocks()
550 group_adjust_blocks(sb, block_group, desc, bh2, group_freed); in ext2_free_blocks()
1451 struct ext2_group_desc * desc; in ext2_count_free_blocks() local
1461 desc = NULL; in ext2_count_free_blocks()
1464 desc = ext2_get_group_desc (sb, i, NULL); in ext2_count_free_blocks()
1465 if (!desc) in ext2_count_free_blocks()
1467 desc_count += le16_to_cpu(desc->bg_free_blocks_count); in ext2_count_free_blocks()
1474 i, le16_to_cpu(desc->bg_free_blocks_count), x); in ext2_count_free_blocks()
1484 desc = ext2_get_group_desc (sb, i, NULL); in ext2_count_free_blocks()
1485 if (!desc) in ext2_count_free_blocks()
1487 desc_count += le16_to_cpu(desc->bg_free_blocks_count); in ext2_count_free_blocks()