/fs/ext4/ |
D | ialloc.c | 71 struct ext4_group_desc *gdp) in ext4_init_inode_bitmap() argument 79 if (!ext4_group_desc_csum_verify(sb, block_group, gdp)) { in ext4_init_inode_bitmap() 88 count = ext4_free_inodes_count(sb, gdp); in ext4_init_inode_bitmap() 99 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bh, in ext4_init_inode_bitmap() 101 ext4_group_desc_csum_set(sb, block_group, gdp); in ext4_init_inode_bitmap() 238 struct ext4_group_desc *gdp; in ext4_free_inode() local 299 gdp = ext4_get_group_desc(sb, block_group, &bh2); in ext4_free_inode() 300 if (gdp) { in ext4_free_inode() 311 count = ext4_free_inodes_count(sb, gdp) + 1; in ext4_free_inode() 312 ext4_free_inodes_set(sb, gdp, count); in ext4_free_inode() [all …]
|
D | bitmap.c | 20 struct ext4_group_desc *gdp, in ext4_inode_bitmap_csum_verify() argument 30 provided = le16_to_cpu(gdp->bg_inode_bitmap_csum_lo); in ext4_inode_bitmap_csum_verify() 33 hi = le16_to_cpu(gdp->bg_inode_bitmap_csum_hi); in ext4_inode_bitmap_csum_verify() 42 struct ext4_group_desc *gdp, in ext4_inode_bitmap_csum_set() argument 52 gdp->bg_inode_bitmap_csum_lo = cpu_to_le16(csum & 0xFFFF); in ext4_inode_bitmap_csum_set() 54 gdp->bg_inode_bitmap_csum_hi = cpu_to_le16(csum >> 16); in ext4_inode_bitmap_csum_set() 58 struct ext4_group_desc *gdp, in ext4_block_bitmap_csum_verify() argument 69 provided = le16_to_cpu(gdp->bg_block_bitmap_csum_lo); in ext4_block_bitmap_csum_verify() 72 hi = le16_to_cpu(gdp->bg_block_bitmap_csum_hi); in ext4_block_bitmap_csum_verify() 84 struct ext4_group_desc *gdp, in ext4_block_bitmap_csum_set() argument [all …]
|
D | balloc.c | 88 struct ext4_group_desc *gdp) in ext4_num_overhead_clusters() argument 113 if (ext4_block_in_group(sb, ext4_block_bitmap(sb, gdp), block_group)) { in ext4_num_overhead_clusters() 115 ext4_block_bitmap(sb, gdp) - start); in ext4_num_overhead_clusters() 124 if (ext4_block_in_group(sb, ext4_inode_bitmap(sb, gdp), block_group)) { in ext4_num_overhead_clusters() 126 ext4_inode_bitmap(sb, gdp) - start); in ext4_num_overhead_clusters() 135 itbl_blk = ext4_inode_table(sb, gdp); in ext4_num_overhead_clusters() 182 struct ext4_group_desc *gdp) in ext4_init_block_bitmap() argument 194 if (!ext4_group_desc_csum_verify(sb, block_group, gdp)) { in ext4_init_block_bitmap() 202 count = ext4_free_inodes_count(sb, gdp); in ext4_init_block_bitmap() 221 tmp = ext4_block_bitmap(sb, gdp); in ext4_init_block_bitmap() [all …]
|
D | block_validity.c | 144 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()
|
D | super.c | 1971 struct ext4_group_desc *gdp = NULL; in ext4_fill_flex_info() local 1986 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_fill_flex_info() 1989 atomic_add(ext4_free_inodes_count(sb, gdp), in ext4_fill_flex_info() 1991 atomic64_add(ext4_free_group_clusters(sb, gdp), in ext4_fill_flex_info() 1993 atomic_add(ext4_used_dirs_count(sb, gdp), in ext4_fill_flex_info() 2003 struct ext4_group_desc *gdp) in ext4_group_desc_csum() argument 2014 save_csum = gdp->bg_checksum; in ext4_group_desc_csum() 2015 gdp->bg_checksum = 0; in ext4_group_desc_csum() 2018 csum32 = ext4_chksum(sbi, csum32, (__u8 *)gdp, in ext4_group_desc_csum() 2020 gdp->bg_checksum = save_csum; in ext4_group_desc_csum() [all …]
|
D | resize.c | 1210 struct ext4_group_desc *gdp, in ext4_set_bitmap_checksums() argument 1221 ext4_inode_bitmap_csum_set(sb, group, gdp, bh, in ext4_set_bitmap_checksums() 1228 ext4_block_bitmap_csum_set(sb, group, gdp, bh); in ext4_set_bitmap_checksums() 1241 struct ext4_group_desc *gdp; in ext4_setup_new_descs() local 1260 gdp = (struct ext4_group_desc *)(gdb_bh->b_data + in ext4_setup_new_descs() 1263 memset(gdp, 0, EXT4_DESC_SIZE(sb)); in ext4_setup_new_descs() 1264 ext4_block_bitmap_set(sb, gdp, group_data->block_bitmap); in ext4_setup_new_descs() 1265 ext4_inode_bitmap_set(sb, gdp, group_data->inode_bitmap); in ext4_setup_new_descs() 1266 err = ext4_set_bitmap_checksums(sb, group, gdp, group_data); in ext4_setup_new_descs() 1272 ext4_inode_table_set(sb, gdp, group_data->inode_table); in ext4_setup_new_descs() [all …]
|
D | mballoc.c | 2872 struct ext4_group_desc *gdp; in ext4_mb_mark_diskspace_used() local 2896 gdp = ext4_get_group_desc(sb, ac->ac_b_ex.fe_group, &gdp_bh); in ext4_mb_mark_diskspace_used() 2897 if (!gdp) in ext4_mb_mark_diskspace_used() 2901 ext4_free_group_clusters(sb, gdp)); in ext4_mb_mark_diskspace_used() 2940 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in ext4_mb_mark_diskspace_used() 2941 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mb_mark_diskspace_used() 2942 ext4_free_group_clusters_set(sb, gdp, in ext4_mb_mark_diskspace_used() 2944 ac->ac_b_ex.fe_group, gdp)); in ext4_mb_mark_diskspace_used() 2946 len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len; in ext4_mb_mark_diskspace_used() 2947 ext4_free_group_clusters_set(sb, gdp, len); in ext4_mb_mark_diskspace_used() [all …]
|
D | ext4.h | 1995 struct ext4_group_desc *gdp, 1998 struct ext4_group_desc *gdp, 2001 struct ext4_group_desc *gdp, 2004 struct ext4_group_desc *gdp, 2045 struct ext4_group_desc *gdp); 2513 struct ext4_group_desc *gdp); 2515 struct ext4_group_desc *gdp);
|
D | inode.c | 3797 struct ext4_group_desc *gdp; in __ext4_get_inode_loc() local 3808 gdp = ext4_get_group_desc(sb, iloc->block_group, NULL); in __ext4_get_inode_loc() 3809 if (!gdp) in __ext4_get_inode_loc() 3818 block = ext4_inode_table(sb, gdp) + (inode_offset / inodes_per_block); in __ext4_get_inode_loc() 3854 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc() 3893 table = ext4_inode_table(sb, gdp); in __ext4_get_inode_loc() 3901 num -= ext4_itable_unused_count(sb, gdp); in __ext4_get_inode_loc()
|
/fs/ext3/ |
D | ialloc.c | 88 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() 355 struct ext3_group_desc * gdp = NULL; in ext3_new_inode() local 388 gdp = ext3_get_group_desc(sb, group, &bh2); in ext3_new_inode() 389 if (!gdp) in ext3_new_inode() 454 le16_add_cpu(&gdp->bg_free_inodes_count, -1); in ext3_new_inode() 456 le16_add_cpu(&gdp->bg_used_dirs_count, 1); in ext3_new_inode() [all …]
|
D | balloc.c | 1501 struct ext3_group_desc *gdp; in ext3_new_blocks() local 1557 gdp = ext3_get_group_desc(sb, group_no, &gdp_bh); in ext3_new_blocks() 1558 if (!gdp) in ext3_new_blocks() 1561 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext3_new_blocks() 1597 gdp = ext3_get_group_desc(sb, group_no, &gdp_bh); in ext3_new_blocks() 1598 if (!gdp) in ext3_new_blocks() 1600 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext3_new_blocks() 1650 group_no, gdp->bg_free_blocks_count); in ext3_new_blocks() 1659 if (in_range(le32_to_cpu(gdp->bg_block_bitmap), ret_block, num) || in ext3_new_blocks() 1660 in_range(le32_to_cpu(gdp->bg_inode_bitmap), ret_block, num) || in ext3_new_blocks() [all …]
|
D | resize.c | 790 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()
|
D | super.c | 1393 struct ext3_group_desc *gdp = ext3_get_group_desc(sb, i, NULL); in ext3_check_descriptors() local 1403 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext3_check_descriptors() 1404 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext3_check_descriptors() 1410 le32_to_cpu(gdp->bg_block_bitmap)); in ext3_check_descriptors() 1413 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext3_check_descriptors() 1414 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext3_check_descriptors() 1420 le32_to_cpu(gdp->bg_inode_bitmap)); in ext3_check_descriptors() 1423 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext3_check_descriptors() 1424 le32_to_cpu(gdp->bg_inode_table) + sbi->s_itb_per_group - 1 > in ext3_check_descriptors() 1431 le32_to_cpu(gdp->bg_inode_table)); in ext3_check_descriptors()
|
D | inode.c | 2694 struct ext3_group_desc *gdp; in ext3_get_inode_block() local 2706 gdp = ext3_get_group_desc(sb, block_group, NULL); in ext3_get_inode_block() 2707 if (!gdp) in ext3_get_inode_block() 2714 block = le32_to_cpu(gdp->bg_inode_table) + in ext3_get_inode_block()
|
/fs/ext2/ |
D | ialloc.c | 170 struct ext2_group_desc * gdp; in ext2_preread_inode() local 180 gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL); in ext2_preread_inode() 181 if (gdp == NULL) in ext2_preread_inode() 189 block = le32_to_cpu(gdp->bg_inode_table) + in ext2_preread_inode() 439 struct ext2_group_desc *gdp; in ext2_new_inode() local 467 gdp = ext2_get_group_desc(sb, group, &bh2); in ext2_new_inode() 533 le16_add_cpu(&gdp->bg_free_inodes_count, -1); in ext2_new_inode() 537 le16_add_cpu(&gdp->bg_used_dirs_count, 1); in ext2_new_inode() 668 struct ext2_group_desc *gdp = ext2_get_group_desc (sb, i, NULL); in ext2_count_dirs() local 669 if (!gdp) in ext2_count_dirs() [all …]
|
D | balloc.c | 1224 struct ext2_group_desc *gdp; in ext2_new_blocks() local 1279 gdp = ext2_get_group_desc(sb, group_no, &gdp_bh); in ext2_new_blocks() 1280 if (!gdp) in ext2_new_blocks() 1283 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks() 1317 gdp = ext2_get_group_desc(sb, group_no, &gdp_bh); in ext2_new_blocks() 1318 if (!gdp) in ext2_new_blocks() 1321 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks() 1368 group_no, gdp->bg_free_blocks_count); in ext2_new_blocks() 1372 if (in_range(le32_to_cpu(gdp->bg_block_bitmap), ret_block, num) || in ext2_new_blocks() 1373 in_range(le32_to_cpu(gdp->bg_inode_bitmap), ret_block, num) || in ext2_new_blocks() [all …]
|
D | super.c | 653 struct ext2_group_desc *gdp = ext2_get_group_desc(sb, i, NULL); in ext2_check_descriptors() local 663 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext2_check_descriptors() 664 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext2_check_descriptors() 669 i, (unsigned long) le32_to_cpu(gdp->bg_block_bitmap)); in ext2_check_descriptors() 672 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext2_check_descriptors() 673 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext2_check_descriptors() 678 i, (unsigned long) le32_to_cpu(gdp->bg_inode_bitmap)); in ext2_check_descriptors() 681 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext2_check_descriptors() 682 le32_to_cpu(gdp->bg_inode_table) + sbi->s_itb_per_group - 1 > in ext2_check_descriptors() 688 i, (unsigned long) le32_to_cpu(gdp->bg_inode_table)); in ext2_check_descriptors()
|
D | inode.c | 1234 struct ext2_group_desc * gdp; in ext2_get_inode() local 1242 gdp = ext2_get_group_desc(sb, block_group, NULL); in ext2_get_inode() 1243 if (!gdp) in ext2_get_inode() 1249 block = le32_to_cpu(gdp->bg_inode_table) + in ext2_get_inode()
|