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()
208 struct ext2_group_desc *desc, *best_desc = NULL; in find_group_dir() local
212 desc = ext2_get_group_desc (sb, group, NULL); in find_group_dir()
213 if (!desc || !desc->bg_free_inodes_count) in find_group_dir()
215 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) in find_group_dir()
218 (le16_to_cpu(desc->bg_free_blocks_count) > in find_group_dir()
221 best_desc = desc; in find_group_dir()
271 struct ext2_group_desc *desc; in find_group_orlov() local
289 desc = ext2_get_group_desc (sb, group, NULL); in find_group_orlov()
290 if (!desc || !desc->bg_free_inodes_count) in find_group_orlov()
292 if (le16_to_cpu(desc->bg_used_dirs_count) >= best_ndir) in find_group_orlov()
294 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) in find_group_orlov()
296 if (le16_to_cpu(desc->bg_free_blocks_count) < avefreeb) in find_group_orlov()
299 best_ndir = le16_to_cpu(desc->bg_used_dirs_count); in find_group_orlov()
300 best_desc = desc; in find_group_orlov()
303 desc = best_desc; in find_group_orlov()
329 desc = ext2_get_group_desc (sb, group, NULL); in find_group_orlov()
330 if (!desc || !desc->bg_free_inodes_count) in find_group_orlov()
334 if (le16_to_cpu(desc->bg_used_dirs_count) >= max_dirs) in find_group_orlov()
336 if (le16_to_cpu(desc->bg_free_inodes_count) < min_inodes) in find_group_orlov()
338 if (le16_to_cpu(desc->bg_free_blocks_count) < min_blocks) in find_group_orlov()
346 desc = ext2_get_group_desc (sb, group, NULL); in find_group_orlov()
347 if (!desc || !desc->bg_free_inodes_count) in find_group_orlov()
349 if (le16_to_cpu(desc->bg_free_inodes_count) >= avefreei) in find_group_orlov()
372 struct ext2_group_desc *desc; in find_group_other() local
379 desc = ext2_get_group_desc (sb, group, NULL); in find_group_other()
380 if (desc && le16_to_cpu(desc->bg_free_inodes_count) && in find_group_other()
381 le16_to_cpu(desc->bg_free_blocks_count)) in find_group_other()
403 desc = ext2_get_group_desc (sb, group, NULL); in find_group_other()
404 if (desc && le16_to_cpu(desc->bg_free_inodes_count) && in find_group_other()
405 le16_to_cpu(desc->bg_free_blocks_count)) in find_group_other()
417 desc = ext2_get_group_desc (sb, group, NULL); in find_group_other()
418 if (desc && le16_to_cpu(desc->bg_free_inodes_count)) in find_group_other()
623 struct ext2_group_desc *desc; in ext2_count_free_inodes() local
636 desc = ext2_get_group_desc (sb, i, NULL); in ext2_count_free_inodes()
637 if (!desc) in ext2_count_free_inodes()
639 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes()
647 i, le16_to_cpu(desc->bg_free_inodes_count), x); in ext2_count_free_inodes()
658 desc = ext2_get_group_desc (sb, i, NULL); in ext2_count_free_inodes()
659 if (!desc) in ext2_count_free_inodes()
661 desc_count += le16_to_cpu(desc->bg_free_inodes_count); in ext2_count_free_inodes()