Lines Matching refs:desc
49 struct ext2_group_desc *desc; in read_inode_bitmap() local
52 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap()
53 if (!desc) in read_inode_bitmap()
56 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap()
61 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap()
68 struct ext2_group_desc * desc; in ext2_release_inode() local
71 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode()
72 if (!desc) { in ext2_release_inode()
79 le16_add_cpu(&desc->bg_free_inodes_count, 1); in ext2_release_inode()
81 le16_add_cpu(&desc->bg_used_dirs_count, -1); in ext2_release_inode()
203 struct ext2_group_desc *desc, *best_desc = NULL; in find_group_dir() local
207 desc = ext2_get_group_desc (sb, group, NULL); in find_group_dir()
208 if (!desc || !desc->bg_free_inodes_count) in find_group_dir()
210 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) in find_group_dir()
213 (le16_to_cpu(desc->bg_free_blocks_count) > in find_group_dir()
216 best_desc = desc; in find_group_dir()
266 struct ext2_group_desc *desc; in find_group_orlov() local
282 desc = ext2_get_group_desc (sb, group, NULL); in find_group_orlov()
283 if (!desc || !desc->bg_free_inodes_count) in find_group_orlov()
285 if (le16_to_cpu(desc->bg_used_dirs_count) >= best_ndir) in find_group_orlov()
287 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) in find_group_orlov()
289 if (le16_to_cpu(desc->bg_free_blocks_count) < avefreeb) in find_group_orlov()
292 best_ndir = le16_to_cpu(desc->bg_used_dirs_count); in find_group_orlov()
320 desc = ext2_get_group_desc (sb, group, NULL); in find_group_orlov()
321 if (!desc || !desc->bg_free_inodes_count) in find_group_orlov()
325 if (le16_to_cpu(desc->bg_used_dirs_count) >= max_dirs) in find_group_orlov()
327 if (le16_to_cpu(desc->bg_free_inodes_count) < min_inodes) in find_group_orlov()
329 if (le16_to_cpu(desc->bg_free_blocks_count) < min_blocks) in find_group_orlov()
337 desc = ext2_get_group_desc (sb, group, NULL); in find_group_orlov()
338 if (!desc || !desc->bg_free_inodes_count) in find_group_orlov()
340 if (le16_to_cpu(desc->bg_free_inodes_count) >= avefreei) in find_group_orlov()
363 struct ext2_group_desc *desc; in find_group_other() local
370 desc = ext2_get_group_desc (sb, group, NULL); in find_group_other()
371 if (desc && le16_to_cpu(desc->bg_free_inodes_count) && in find_group_other()
372 le16_to_cpu(desc->bg_free_blocks_count)) in find_group_other()
394 desc = ext2_get_group_desc (sb, group, NULL); in find_group_other()
395 if (desc && le16_to_cpu(desc->bg_free_inodes_count) && in find_group_other()
396 le16_to_cpu(desc->bg_free_blocks_count)) in find_group_other()
408 desc = ext2_get_group_desc (sb, group, NULL); in find_group_other()
409 if (desc && le16_to_cpu(desc->bg_free_inodes_count)) in find_group_other()
614 struct ext2_group_desc *desc; in ext2_count_free_inodes() local
627 desc = ext2_get_group_desc (sb, i, NULL); in ext2_count_free_inodes()
628 if (!desc) in ext2_count_free_inodes()
630 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes()
638 i, le16_to_cpu(desc->bg_free_inodes_count), x); in ext2_count_free_inodes()
649 desc = ext2_get_group_desc (sb, i, NULL); in ext2_count_free_inodes()
650 if (!desc) in ext2_count_free_inodes()
652 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes()