Home
last modified time | relevance | path

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

/fs/ext4/
Dialloc.c243 struct ext4_group_desc *gdp; in ext4_free_inode() local
310 gdp = ext4_get_group_desc(sb, block_group, &bh2); in ext4_free_inode()
311 if (gdp) { in ext4_free_inode()
322 count = ext4_free_inodes_count(sb, gdp) + 1; in ext4_free_inode()
323 ext4_free_inodes_set(sb, gdp, count); in ext4_free_inode()
325 count = ext4_used_dirs_count(sb, gdp) - 1; in ext4_free_inode()
326 ext4_used_dirs_set(sb, gdp, count); in ext4_free_inode()
329 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
331 ext4_group_desc_csum_set(sb, block_group, gdp); in ext4_free_inode()
354 if (gdp && !EXT4_MB_GRP_IBITMAP_CORRUPT(grp)) { in ext4_free_inode()
[all …]
Dbitmap.c20 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 …]
Dballoc.c88 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
193 if (!ext4_group_desc_csum_verify(sb, block_group, gdp)) { in ext4_init_block_bitmap()
201 count = ext4_free_inodes_count(sb, gdp); in ext4_init_block_bitmap()
220 tmp = ext4_block_bitmap(sb, gdp); 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.c2278 struct ext4_group_desc *gdp = NULL; in ext4_fill_flex_info() local
2294 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_fill_flex_info()
2298 atomic_add(ext4_free_inodes_count(sb, gdp), &fg->free_inodes); in ext4_fill_flex_info()
2299 atomic64_add(ext4_free_group_clusters(sb, gdp), in ext4_fill_flex_info()
2301 atomic_add(ext4_used_dirs_count(sb, gdp), &fg->used_dirs); in ext4_fill_flex_info()
2310 struct ext4_group_desc *gdp) in ext4_group_desc_csum() argument
2324 csum32 = ext4_chksum(sbi, csum32, (__u8 *)gdp, offset); in ext4_group_desc_csum()
2329 csum32 = ext4_chksum(sbi, csum32, (__u8 *)gdp + offset, in ext4_group_desc_csum()
2342 crc = crc16(crc, (__u8 *)gdp, offset); in ext4_group_desc_csum()
2343 offset += sizeof(gdp->bg_checksum); /* skip checksum */ in ext4_group_desc_csum()
[all …]
Dresize.c1252 struct ext4_group_desc *gdp, in ext4_set_bitmap_checksums() argument
1263 ext4_inode_bitmap_csum_set(sb, group, gdp, bh, in ext4_set_bitmap_checksums()
1270 ext4_block_bitmap_csum_set(sb, group, gdp, bh); in ext4_set_bitmap_checksums()
1283 struct ext4_group_desc *gdp; in ext4_setup_new_descs() local
1302 gdp = (struct ext4_group_desc *)(gdb_bh->b_data + in ext4_setup_new_descs()
1305 memset(gdp, 0, EXT4_DESC_SIZE(sb)); in ext4_setup_new_descs()
1306 ext4_block_bitmap_set(sb, gdp, group_data->block_bitmap); in ext4_setup_new_descs()
1307 ext4_inode_bitmap_set(sb, gdp, group_data->inode_bitmap); in ext4_setup_new_descs()
1308 err = ext4_set_bitmap_checksums(sb, group, gdp, group_data); in ext4_setup_new_descs()
1314 ext4_inode_table_set(sb, gdp, group_data->inode_table); in ext4_setup_new_descs()
[all …]
Dfsmap.c421 struct ext4_group_desc *gdp; in ext4_getfsmap_find_fixed_metadata() local
429 gdp = ext4_get_group_desc(sb, agno, NULL); in ext4_getfsmap_find_fixed_metadata()
430 if (!gdp) { in ext4_getfsmap_find_fixed_metadata()
442 ext4_block_bitmap(sb, gdp), 1, in ext4_getfsmap_find_fixed_metadata()
449 ext4_inode_bitmap(sb, gdp), 1, in ext4_getfsmap_find_fixed_metadata()
456 ext4_inode_table(sb, gdp), in ext4_getfsmap_find_fixed_metadata()
Dmballoc.c2977 struct ext4_group_desc *gdp; in ext4_mb_mark_diskspace_used() local
3003 gdp = ext4_get_group_desc(sb, ac->ac_b_ex.fe_group, &gdp_bh); in ext4_mb_mark_diskspace_used()
3004 if (!gdp) in ext4_mb_mark_diskspace_used()
3008 ext4_free_group_clusters(sb, gdp)); in ext4_mb_mark_diskspace_used()
3048 (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))) { in ext4_mb_mark_diskspace_used()
3049 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mb_mark_diskspace_used()
3050 ext4_free_group_clusters_set(sb, gdp, in ext4_mb_mark_diskspace_used()
3052 ac->ac_b_ex.fe_group, gdp)); in ext4_mb_mark_diskspace_used()
3054 len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len; in ext4_mb_mark_diskspace_used()
3055 ext4_free_group_clusters_set(sb, gdp, len); in ext4_mb_mark_diskspace_used()
[all …]
Dext4.h2279 struct ext4_group_desc *gdp,
2282 struct ext4_group_desc *gdp,
2285 struct ext4_group_desc *gdp,
2288 struct ext4_group_desc *gdp,
2329 struct ext4_group_desc *gdp);
2753 struct ext4_group_desc *gdp);
2755 struct ext4_group_desc *gdp);
Dinode.c4531 struct ext4_group_desc *gdp; in __ext4_get_inode_loc() local
4543 gdp = ext4_get_group_desc(sb, iloc->block_group, NULL); in __ext4_get_inode_loc()
4544 if (!gdp) in __ext4_get_inode_loc()
4553 block = ext4_inode_table(sb, gdp) + (inode_offset / inodes_per_block); in __ext4_get_inode_loc()
4589 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc()
4628 table = ext4_inode_table(sb, gdp); in __ext4_get_inode_loc()
4636 num -= ext4_itable_unused_count(sb, gdp); in __ext4_get_inode_loc()
/fs/ext2/
Dialloc.c171 struct ext2_group_desc * gdp; in ext2_preread_inode() local
181 gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL); in ext2_preread_inode()
182 if (gdp == NULL) in ext2_preread_inode()
190 block = le32_to_cpu(gdp->bg_inode_table) + in ext2_preread_inode()
440 struct ext2_group_desc *gdp; in ext2_new_inode() local
468 gdp = ext2_get_group_desc(sb, group, &bh2); in ext2_new_inode()
469 if (!gdp) { in ext2_new_inode()
539 le16_add_cpu(&gdp->bg_free_inodes_count, -1); in ext2_new_inode()
543 le16_add_cpu(&gdp->bg_used_dirs_count, 1); in ext2_new_inode()
677 struct ext2_group_desc *gdp = ext2_get_group_desc (sb, i, NULL); in ext2_count_dirs() local
[all …]
Dballoc.c1247 struct ext2_group_desc *gdp; in ext2_new_blocks() local
1302 gdp = ext2_get_group_desc(sb, group_no, &gdp_bh); in ext2_new_blocks()
1303 if (!gdp) in ext2_new_blocks()
1306 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1340 gdp = ext2_get_group_desc(sb, group_no, &gdp_bh); in ext2_new_blocks()
1341 if (!gdp) in ext2_new_blocks()
1344 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1391 group_no, gdp->bg_free_blocks_count); in ext2_new_blocks()
1395 if (in_range(le32_to_cpu(gdp->bg_block_bitmap), ret_block, num) || in ext2_new_blocks()
1396 in_range(le32_to_cpu(gdp->bg_inode_bitmap), ret_block, num) || in ext2_new_blocks()
[all …]
Dsuper.c706 struct ext2_group_desc *gdp = ext2_get_group_desc(sb, i, NULL); in ext2_check_descriptors() local
716 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext2_check_descriptors()
717 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext2_check_descriptors()
722 i, (unsigned long) le32_to_cpu(gdp->bg_block_bitmap)); in ext2_check_descriptors()
725 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext2_check_descriptors()
726 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext2_check_descriptors()
731 i, (unsigned long) le32_to_cpu(gdp->bg_inode_bitmap)); in ext2_check_descriptors()
734 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext2_check_descriptors()
735 le32_to_cpu(gdp->bg_inode_table) + sbi->s_itb_per_group - 1 > in ext2_check_descriptors()
741 i, (unsigned long) le32_to_cpu(gdp->bg_inode_table)); in ext2_check_descriptors()
Dinode.c1328 struct ext2_group_desc * gdp; in ext2_get_inode() local
1336 gdp = ext2_get_group_desc(sb, block_group, NULL); in ext2_get_inode()
1337 if (!gdp) in ext2_get_inode()
1343 block = le32_to_cpu(gdp->bg_inode_table) + in ext2_get_inode()
/fs/nfsd/
Dblocklayout.c146 struct nfsd4_getdeviceinfo *gdp) in nfsd4_block_get_device_info_simple() argument
155 gdp->gd_device = dev; in nfsd4_block_get_device_info_simple()
170 struct nfsd4_getdeviceinfo *gdp) in nfsd4_block_proc_getdeviceinfo() argument
174 return nfserrno(nfsd4_block_get_device_info_simple(sb, gdp)); in nfsd4_block_proc_getdeviceinfo()
316 struct nfsd4_getdeviceinfo *gdp) in nfsd4_block_get_device_info_scsi() argument
327 gdp->gd_device = dev; in nfsd4_block_get_device_info_scsi()
368 struct nfsd4_getdeviceinfo *gdp) in nfsd4_scsi_proc_getdeviceinfo() argument
372 return nfserrno(nfsd4_block_get_device_info_scsi(sb, clp, gdp)); in nfsd4_scsi_proc_getdeviceinfo()
Dflexfilelayoutxdr.c80 struct nfsd4_getdeviceinfo *gdp) in nfsd4_ff_encode_getdeviceinfo() argument
82 struct pnfs_ff_device_addr *da = gdp->gd_device; in nfsd4_ff_encode_getdeviceinfo()
Dflexfilelayout.c81 struct nfs4_client *clp, struct nfsd4_getdeviceinfo *gdp) in nfsd4_ff_proc_getdeviceinfo() argument
92 gdp->gd_device = da; in nfsd4_ff_proc_getdeviceinfo()
Dblocklayoutxdr.c79 struct nfsd4_getdeviceinfo *gdp) in nfsd4_block_encode_getdeviceinfo() argument
81 struct pnfs_block_deviceaddr *dev = gdp->gd_device; in nfsd4_block_encode_getdeviceinfo()
Dflexfilelayoutxdr.h46 struct nfsd4_getdeviceinfo *gdp);
Dblocklayoutxdr.h54 struct nfsd4_getdeviceinfo *gdp);
Dnfs4proc.c1329 struct nfsd4_getdeviceinfo *gdp = &u->getdeviceinfo; in nfsd4_getdeviceinfo() local
1337 gdp->gd_layout_type, in nfsd4_getdeviceinfo()
1338 gdp->gd_devid.fsid_idx, gdp->gd_devid.generation, in nfsd4_getdeviceinfo()
1339 gdp->gd_maxcount); in nfsd4_getdeviceinfo()
1341 map = nfsd4_find_devid_map(gdp->gd_devid.fsid_idx); in nfsd4_getdeviceinfo()
1355 ops = nfsd4_layout_verify(exp, gdp->gd_layout_type); in nfsd4_getdeviceinfo()
1360 if (gdp->gd_maxcount != 0) { in nfsd4_getdeviceinfo()
1362 rqstp, cstate->session->se_client, gdp); in nfsd4_getdeviceinfo()
1365 gdp->gd_notify_types &= ops->notify_types; in nfsd4_getdeviceinfo()