Home
last modified time | relevance | path

Searched refs:gdp (Results 1 – 17 of 17) sorted by relevance

/fs/ext4/
Dialloc.c71 struct ext4_group_desc *gdp) in ext4_init_inode_bitmap() argument
79 if (!ext4_group_desc_csum_verify(sbi, block_group, gdp)) { in ext4_init_inode_bitmap()
81 ext4_free_group_clusters_set(sb, gdp, 0); in ext4_init_inode_bitmap()
82 ext4_free_inodes_set(sb, gdp, 0); in ext4_init_inode_bitmap()
83 ext4_itable_unused_set(sb, gdp, 0); in ext4_init_inode_bitmap()
202 struct ext4_group_desc *gdp; in ext4_free_inode() local
260 gdp = ext4_get_group_desc(sb, block_group, &bh2); in ext4_free_inode()
261 if (gdp) { in ext4_free_inode()
272 count = ext4_free_inodes_count(sb, gdp) + 1; in ext4_free_inode()
273 ext4_free_inodes_set(sb, gdp, count); in ext4_free_inode()
[all …]
Dballoc.c67 struct ext4_group_desc *gdp) in ext4_num_overhead_clusters() argument
92 if (ext4_block_in_group(sb, ext4_block_bitmap(sb, gdp), block_group)) { in ext4_num_overhead_clusters()
94 ext4_block_bitmap(sb, gdp) - start); in ext4_num_overhead_clusters()
103 if (ext4_block_in_group(sb, ext4_inode_bitmap(sb, gdp), block_group)) { in ext4_num_overhead_clusters()
105 ext4_inode_bitmap(sb, gdp) - start); in ext4_num_overhead_clusters()
114 itbl_blk = ext4_inode_table(sb, gdp); in ext4_num_overhead_clusters()
160 struct ext4_group_desc *gdp) in ext4_init_block_bitmap() argument
171 if (!ext4_group_desc_csum_verify(sbi, block_group, gdp)) { in ext4_init_block_bitmap()
173 ext4_free_group_clusters_set(sb, gdp, 0); in ext4_init_block_bitmap()
174 ext4_free_inodes_set(sb, gdp, 0); in ext4_init_block_bitmap()
[all …]
Dblock_validity.c144 struct ext4_group_desc *gdp; in ext4_setup_system_zone() local
162 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_setup_system_zone()
163 ret = add_system_zone(sbi, ext4_block_bitmap(sb, gdp), 1); in ext4_setup_system_zone()
166 ret = add_system_zone(sbi, ext4_inode_bitmap(sb, gdp), 1); in ext4_setup_system_zone()
169 ret = add_system_zone(sbi, ext4_inode_table(sb, gdp), in ext4_setup_system_zone()
Dsuper.c1881 struct ext4_group_desc *gdp = NULL; in ext4_fill_flex_info() local
1908 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_fill_flex_info()
1911 atomic_add(ext4_free_inodes_count(sb, gdp), in ext4_fill_flex_info()
1913 atomic64_add(ext4_free_group_clusters(sb, gdp), in ext4_fill_flex_info()
1915 atomic_add(ext4_used_dirs_count(sb, gdp), in ext4_fill_flex_info()
1925 struct ext4_group_desc *gdp) in ext4_group_desc_csum() argument
1936 crc = crc16(crc, (__u8 *)gdp, offset); in ext4_group_desc_csum()
1937 offset += sizeof(gdp->bg_checksum); /* skip checksum */ in ext4_group_desc_csum()
1942 crc = crc16(crc, (__u8 *)gdp + offset, in ext4_group_desc_csum()
1951 struct ext4_group_desc *gdp) in ext4_group_desc_csum_verify() argument
[all …]
Dresize.c1088 struct ext4_group_desc *gdp; in ext4_setup_new_descs() local
1107 gdp = (struct ext4_group_desc *)((char *)gdb_bh->b_data + in ext4_setup_new_descs()
1110 memset(gdp, 0, EXT4_DESC_SIZE(sb)); in ext4_setup_new_descs()
1111 ext4_block_bitmap_set(sb, gdp, group_data->block_bitmap); in ext4_setup_new_descs()
1112 ext4_inode_bitmap_set(sb, gdp, group_data->inode_bitmap); in ext4_setup_new_descs()
1113 ext4_inode_table_set(sb, gdp, group_data->inode_table); in ext4_setup_new_descs()
1114 ext4_free_group_clusters_set(sb, gdp, in ext4_setup_new_descs()
1116 ext4_free_inodes_set(sb, gdp, EXT4_INODES_PER_GROUP(sb)); in ext4_setup_new_descs()
1117 gdp->bg_flags = cpu_to_le16(*bg_flags); in ext4_setup_new_descs()
1118 gdp->bg_checksum = ext4_group_desc_csum(sbi, group, gdp); in ext4_setup_new_descs()
[all …]
Dmballoc.c2732 struct ext4_group_desc *gdp; in ext4_mb_mark_diskspace_used() local
2755 gdp = ext4_get_group_desc(sb, ac->ac_b_ex.fe_group, &gdp_bh); in ext4_mb_mark_diskspace_used()
2756 if (!gdp) in ext4_mb_mark_diskspace_used()
2760 ext4_free_group_clusters(sb, gdp)); in ext4_mb_mark_diskspace_used()
2798 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in ext4_mb_mark_diskspace_used()
2799 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mb_mark_diskspace_used()
2800 ext4_free_group_clusters_set(sb, gdp, in ext4_mb_mark_diskspace_used()
2802 ac->ac_b_ex.fe_group, gdp)); in ext4_mb_mark_diskspace_used()
2804 len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len; in ext4_mb_mark_diskspace_used()
2805 ext4_free_group_clusters_set(sb, gdp, len); in ext4_mb_mark_diskspace_used()
[all …]
Dext4.h1822 struct ext4_group_desc *gdp);
1825 struct ext4_group_desc *gdp);
2030 struct ext4_group_desc *gdp);
2032 struct ext4_group_desc *gdp);
Dinode.c3440 struct ext4_group_desc *gdp; in __ext4_get_inode_loc() local
3451 gdp = ext4_get_group_desc(sb, iloc->block_group, NULL); in __ext4_get_inode_loc()
3452 if (!gdp) in __ext4_get_inode_loc()
3461 block = ext4_inode_table(sb, gdp) + (inode_offset / inodes_per_block); in __ext4_get_inode_loc()
3500 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc()
3538 table = ext4_inode_table(sb, gdp); in __ext4_get_inode_loc()
3547 num -= ext4_itable_unused_count(sb, gdp); in __ext4_get_inode_loc()
/fs/ext3/
Dialloc.c88 struct ext3_group_desc * gdp; in ext3_free_inode() local
138 gdp = ext3_get_group_desc (sb, block_group, &bh2); in ext3_free_inode()
144 if (gdp) { in ext3_free_inode()
146 le16_add_cpu(&gdp->bg_free_inodes_count, 1); in ext3_free_inode()
148 le16_add_cpu(&gdp->bg_used_dirs_count, -1); in ext3_free_inode()
371 struct ext3_group_desc * gdp = NULL; in ext3_new_inode() local
404 gdp = ext3_get_group_desc(sb, group, &bh2); in ext3_new_inode()
405 if (!gdp) in ext3_new_inode()
470 le16_add_cpu(&gdp->bg_free_inodes_count, -1); in ext3_new_inode()
472 le16_add_cpu(&gdp->bg_used_dirs_count, 1); in ext3_new_inode()
[all …]
Dballoc.c1500 struct ext3_group_desc *gdp; in ext3_new_blocks() local
1556 gdp = ext3_get_group_desc(sb, group_no, &gdp_bh); in ext3_new_blocks()
1557 if (!gdp) in ext3_new_blocks()
1560 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext3_new_blocks()
1596 gdp = ext3_get_group_desc(sb, group_no, &gdp_bh); in ext3_new_blocks()
1597 if (!gdp) in ext3_new_blocks()
1599 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext3_new_blocks()
1649 group_no, gdp->bg_free_blocks_count); in ext3_new_blocks()
1658 if (in_range(le32_to_cpu(gdp->bg_block_bitmap), ret_block, num) || in ext3_new_blocks()
1659 in_range(le32_to_cpu(gdp->bg_inode_bitmap), ret_block, num) || in ext3_new_blocks()
[all …]
Dresize.c790 struct ext3_group_desc *gdp; in ext3_group_add() local
903 gdp = (struct ext3_group_desc *)primary->b_data + gdb_off; in ext3_group_add()
905 gdp->bg_block_bitmap = cpu_to_le32(input->block_bitmap); in ext3_group_add()
906 gdp->bg_inode_bitmap = cpu_to_le32(input->inode_bitmap); in ext3_group_add()
907 gdp->bg_inode_table = cpu_to_le32(input->inode_table); in ext3_group_add()
908 gdp->bg_free_blocks_count = cpu_to_le16(input->free_blocks_count); in ext3_group_add()
909 gdp->bg_free_inodes_count = cpu_to_le16(EXT3_INODES_PER_GROUP(sb)); in ext3_group_add()
Dsuper.c1385 struct ext3_group_desc *gdp = ext3_get_group_desc(sb, i, NULL); in ext3_check_descriptors() local
1395 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext3_check_descriptors()
1396 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext3_check_descriptors()
1402 le32_to_cpu(gdp->bg_block_bitmap)); in ext3_check_descriptors()
1405 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext3_check_descriptors()
1406 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext3_check_descriptors()
1412 le32_to_cpu(gdp->bg_inode_bitmap)); in ext3_check_descriptors()
1415 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext3_check_descriptors()
1416 le32_to_cpu(gdp->bg_inode_table) + sbi->s_itb_per_group - 1 > in ext3_check_descriptors()
1423 le32_to_cpu(gdp->bg_inode_table)); in ext3_check_descriptors()
Dinode.c2689 struct ext3_group_desc *gdp; in ext3_get_inode_block() local
2701 gdp = ext3_get_group_desc(sb, block_group, NULL); in ext3_get_inode_block()
2702 if (!gdp) in ext3_get_inode_block()
2709 block = le32_to_cpu(gdp->bg_inode_table) + in ext3_get_inode_block()
/fs/ext2/
Dialloc.c172 struct ext2_group_desc * gdp; in ext2_preread_inode() local
182 gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL); in ext2_preread_inode()
183 if (gdp == NULL) in ext2_preread_inode()
191 block = le32_to_cpu(gdp->bg_inode_table) + in ext2_preread_inode()
441 struct ext2_group_desc *gdp; in ext2_new_inode() local
469 gdp = ext2_get_group_desc(sb, group, &bh2); in ext2_new_inode()
535 le16_add_cpu(&gdp->bg_free_inodes_count, -1); in ext2_new_inode()
539 le16_add_cpu(&gdp->bg_used_dirs_count, 1); in ext2_new_inode()
670 struct ext2_group_desc *gdp = ext2_get_group_desc (sb, i, NULL); in ext2_count_dirs() local
671 if (!gdp) in ext2_count_dirs()
[all …]
Dballoc.c1231 struct ext2_group_desc *gdp; in ext2_new_blocks() local
1290 gdp = ext2_get_group_desc(sb, group_no, &gdp_bh); in ext2_new_blocks()
1291 if (!gdp) in ext2_new_blocks()
1294 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1328 gdp = ext2_get_group_desc(sb, group_no, &gdp_bh); in ext2_new_blocks()
1329 if (!gdp) in ext2_new_blocks()
1332 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1379 group_no, gdp->bg_free_blocks_count); in ext2_new_blocks()
1383 if (in_range(le32_to_cpu(gdp->bg_block_bitmap), ret_block, num) || in ext2_new_blocks()
1384 in_range(le32_to_cpu(gdp->bg_inode_bitmap), ret_block, num) || in ext2_new_blocks()
[all …]
Dsuper.c638 struct ext2_group_desc *gdp = ext2_get_group_desc(sb, i, NULL); in ext2_check_descriptors() local
648 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext2_check_descriptors()
649 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext2_check_descriptors()
654 i, (unsigned long) le32_to_cpu(gdp->bg_block_bitmap)); in ext2_check_descriptors()
657 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext2_check_descriptors()
658 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext2_check_descriptors()
663 i, (unsigned long) le32_to_cpu(gdp->bg_inode_bitmap)); in ext2_check_descriptors()
666 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext2_check_descriptors()
667 le32_to_cpu(gdp->bg_inode_table) + sbi->s_itb_per_group - 1 > in ext2_check_descriptors()
673 i, (unsigned long) le32_to_cpu(gdp->bg_inode_table)); in ext2_check_descriptors()
Dinode.c1216 struct ext2_group_desc * gdp; in ext2_get_inode() local
1224 gdp = ext2_get_group_desc(sb, block_group, NULL); in ext2_get_inode()
1225 if (!gdp) in ext2_get_inode()
1231 block = le32_to_cpu(gdp->bg_inode_table) + in ext2_get_inode()