Home
last modified time | relevance | path

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

/linux/fs/ext2/
H A Dialloc.c172 struct ext2_group_desc * gdp; in ext2_preread_inode() local
175 gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL); in ext2_preread_inode()
176 if (gdp == NULL) in ext2_preread_inode()
184 block = le32_to_cpu(gdp->bg_inode_table) + in ext2_preread_inode()
428 struct ext2_group_desc *gdp; in ext2_new_inode() local
456 gdp = ext2_get_group_desc(sb, group, &bh2); in ext2_new_inode()
457 if (!gdp) { in ext2_new_inode()
528 le16_add_cpu(&gdp->bg_free_inodes_count, -1); in ext2_new_inode()
532 le16_add_cpu(&gdp->bg_used_dirs_count, 1); in ext2_new_inode()
665 struct ext2_group_desc *gdp = ext2_get_group_desc (sb, i, NULL); in ext2_count_dirs() local
[all …]
H A Dballoc.c1222 struct ext2_group_desc *gdp; in ext2_new_blocks() local
1277 gdp = ext2_get_group_desc(sb, group_no, &gdp_bh); in ext2_new_blocks()
1278 if (!gdp) in ext2_new_blocks()
1281 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1322 gdp = ext2_get_group_desc(sb, group_no, &gdp_bh); in ext2_new_blocks()
1323 if (!gdp) in ext2_new_blocks()
1326 free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); in ext2_new_blocks()
1373 group_no, gdp->bg_free_blocks_count); in ext2_new_blocks()
1377 if (in_range(le32_to_cpu(gdp->bg_block_bitmap), ret_block, num) || in ext2_new_blocks()
1378 in_range(le32_to_cpu(gdp->bg_inode_bitmap), ret_block, num) || in ext2_new_blocks()
[all …]
H A Dsuper.c703 struct ext2_group_desc *gdp = ext2_get_group_desc(sb, i, NULL); in ext2_check_descriptors() local
707 if (le32_to_cpu(gdp->bg_block_bitmap) < first_block || in ext2_check_descriptors()
708 le32_to_cpu(gdp->bg_block_bitmap) > last_block) in ext2_check_descriptors()
713 i, (unsigned long) le32_to_cpu(gdp->bg_block_bitmap)); in ext2_check_descriptors()
716 if (le32_to_cpu(gdp->bg_inode_bitmap) < first_block || in ext2_check_descriptors()
717 le32_to_cpu(gdp->bg_inode_bitmap) > last_block) in ext2_check_descriptors()
722 i, (unsigned long) le32_to_cpu(gdp->bg_inode_bitmap)); in ext2_check_descriptors()
725 if (le32_to_cpu(gdp->bg_inode_table) < first_block || in ext2_check_descriptors()
726 le32_to_cpu(gdp->bg_inode_table) + sbi->s_itb_per_group - 1 > in ext2_check_descriptors()
732 i, (unsigned long) le32_to_cpu(gdp->bg_inode_table)); in ext2_check_descriptors()
H A Dinode.c1321 struct ext2_group_desc * gdp; in ext2_get_inode() local
1329 gdp = ext2_get_group_desc(sb, block_group, NULL); in ext2_get_inode()
1330 if (!gdp) in ext2_get_inode()
1336 block = le32_to_cpu(gdp->bg_inode_table) + in ext2_get_inode()
/linux/fs/nfsd/
H A Dblocklayout.c206 struct nfsd4_getdeviceinfo *gdp) in nfsd4_block_get_device_info_simple() argument
214 gdp->gd_device = dev; in nfsd4_block_get_device_info_simple()
229 struct nfsd4_getdeviceinfo *gdp) in nfsd4_block_proc_getdeviceinfo() argument
233 return nfserrno(nfsd4_block_get_device_info_simple(sb, gdp)); in nfsd4_block_proc_getdeviceinfo()
315 struct nfsd4_getdeviceinfo *gdp) in nfsd4_block_get_device_info_scsi() argument
325 gdp->gd_device = dev; in nfsd4_block_get_device_info_scsi()
364 gdp->gd_device = NULL; in nfsd4_block_get_device_info_scsi()
372 struct nfsd4_getdeviceinfo *gdp) in nfsd4_scsi_proc_getdeviceinfo() argument
376 return nfserrno(nfsd4_block_get_device_info_scsi(sb, clp, gdp)); in nfsd4_scsi_proc_getdeviceinfo()
H A Dflexfilelayoutxdr.c79 const struct nfsd4_getdeviceinfo *gdp) in nfsd4_ff_encode_getdeviceinfo() argument
81 struct pnfs_ff_device_addr *da = gdp->gd_device; in nfsd4_ff_encode_getdeviceinfo()
90 if (!gdp->gd_maxcount) { in nfsd4_ff_encode_getdeviceinfo()
H A Dblocklayoutxdr.c97 const struct nfsd4_getdeviceinfo *gdp) in nfsd4_block_encode_getdeviceinfo() argument
99 struct pnfs_block_deviceaddr *dev = gdp->gd_device; in nfsd4_block_encode_getdeviceinfo()
106 if (!gdp->gd_maxcount) { in nfsd4_block_encode_getdeviceinfo()
H A Dflexfilelayout.c82 struct nfs4_client *clp, struct nfsd4_getdeviceinfo *gdp) in nfsd4_ff_proc_getdeviceinfo() argument
93 gdp->gd_device = da; in nfsd4_ff_proc_getdeviceinfo()
H A Dflexfilelayoutxdr.h46 const struct nfsd4_getdeviceinfo *gdp);
H A Dblocklayoutxdr.h68 const struct nfsd4_getdeviceinfo *gdp);
H A Dnfs4proc.c2575 struct nfsd4_getdeviceinfo *gdp = &u->getdeviceinfo; in nfsd4_getdeviceinfo() local
2583 gdp->gd_layout_type, in nfsd4_getdeviceinfo()
2584 gdp->gd_devid.fsid_idx, gdp->gd_devid.generation, in nfsd4_getdeviceinfo()
2585 gdp->gd_maxcount); in nfsd4_getdeviceinfo()
2587 map = nfsd4_find_devid_map(gdp->gd_devid.fsid_idx); in nfsd4_getdeviceinfo()
2603 ops = nfsd4_layout_verify(exp, gdp->gd_layout_type); in nfsd4_getdeviceinfo()
2608 if (gdp->gd_maxcount != 0) { in nfsd4_getdeviceinfo()
2610 rqstp, cstate->clp, gdp); in nfsd4_getdeviceinfo()
2613 gdp->gd_notify_types &= ops->notify_types; in nfsd4_getdeviceinfo()
/linux/fs/ext4/
H A Dblock_validity.c216 struct ext4_group_desc *gdp; in ext4_setup_system_zone() local
235 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_setup_system_zone()
237 ext4_block_bitmap(sb, gdp), 1, 0); in ext4_setup_system_zone()
241 ext4_inode_bitmap(sb, gdp), 1, 0); in ext4_setup_system_zone()
245 ext4_inode_table(sb, gdp), in ext4_setup_system_zone()
H A Dresize.c1312 struct ext4_group_desc *gdp, in ext4_set_bitmap_checksums() argument
1323 ext4_inode_bitmap_csum_set(sb, gdp, bh); in ext4_set_bitmap_checksums()
1329 ext4_block_bitmap_csum_set(sb, gdp, bh); in ext4_set_bitmap_checksums()
1342 struct ext4_group_desc *gdp; in ext4_setup_new_descs() local
1361 gdp = (struct ext4_group_desc *)(gdb_bh->b_data + in ext4_setup_new_descs()
1364 memset(gdp, 0, EXT4_DESC_SIZE(sb)); in ext4_setup_new_descs()
1365 ext4_block_bitmap_set(sb, gdp, group_data->block_bitmap); in ext4_setup_new_descs()
1366 ext4_inode_bitmap_set(sb, gdp, group_data->inode_bitmap); in ext4_setup_new_descs()
1367 err = ext4_set_bitmap_checksums(sb, gdp, group_data); in ext4_setup_new_descs()
1373 ext4_inode_table_set(sb, gdp, group_data->inode_table); in ext4_setup_new_descs()
[all …]
H A Dsuper.c1106 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, group, NULL); in ext4_mark_group_bitmap_corrupted() local
1109 if (!grp || !gdp) in ext4_mark_group_bitmap_corrupted()
1122 if (!ret && gdp) { in ext4_mark_group_bitmap_corrupted()
1125 count = ext4_free_inodes_count(sb, gdp); in ext4_mark_group_bitmap_corrupted()
3187 struct ext4_group_desc *gdp = NULL; in ext4_fill_flex_info() local
3203 gdp = ext4_get_group_desc(sb, i, NULL); in ext4_fill_flex_info()
3207 atomic_add(ext4_free_inodes_count(sb, gdp), &fg->free_inodes); in ext4_fill_flex_info()
3208 atomic64_add(ext4_free_group_clusters(sb, gdp), in ext4_fill_flex_info()
3210 atomic_add(ext4_used_dirs_count(sb, gdp), &fg->used_dirs); in ext4_fill_flex_info()
3219 struct ext4_group_desc *gdp) in ext4_group_desc_csum() argument
[all …]
H A Dfsmap.c473 struct ext4_group_desc *gdp; in ext4_getfsmap_find_fixed_metadata() local
481 gdp = ext4_get_group_desc(sb, agno, NULL); in ext4_getfsmap_find_fixed_metadata()
482 if (!gdp) { in ext4_getfsmap_find_fixed_metadata()
494 ext4_block_bitmap(sb, gdp), 1, in ext4_getfsmap_find_fixed_metadata()
501 ext4_inode_bitmap(sb, gdp), 1, in ext4_getfsmap_find_fixed_metadata()
508 ext4_inode_table(sb, gdp), in ext4_getfsmap_find_fixed_metadata()
H A Dmballoc.c2808 struct ext4_group_desc *gdp = in ext4_mb_good_group_nolock() local
2825 (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)))) in ext4_mb_good_group_nolock()
2858 struct ext4_group_desc *gdp = ext4_get_group_desc(sb, group, in ext4_mb_prefetch() local
2869 if (gdp && grp && !EXT4_MB_GRP_TEST_AND_SET_READ(grp) && in ext4_mb_prefetch()
2871 ext4_free_group_clusters(sb, gdp) > 0 ) { in ext4_mb_prefetch()
2932 struct ext4_group_desc *gdp; in ext4_mb_prefetch_fini() local
2939 gdp = ext4_get_group_desc(sb, group, NULL); in ext4_mb_prefetch_fini()
2942 if (grp && gdp && EXT4_MB_GRP_NEED_INIT(grp) && in ext4_mb_prefetch_fini()
2943 ext4_free_group_clusters(sb, gdp) > 0) { in ext4_mb_prefetch_fini()
4094 struct ext4_group_desc *gdp; in ext4_mb_mark_context() local
[all …]
/linux/drivers/s390/block/
H A Ddasd_devmap.c929 void dasd_add_link_to_gendisk(struct gendisk *gdp, struct dasd_device *device) in dasd_add_link_to_gendisk() argument
937 gdp->private_data = devmap; in dasd_add_link_to_gendisk()
942 struct dasd_device *dasd_device_from_gendisk(struct gendisk *gdp) in dasd_device_from_gendisk() argument
947 if (!gdp->private_data) in dasd_device_from_gendisk()
951 devmap = gdp->private_data; in dasd_device_from_gendisk()
1047 if (!device->block || !device->block->gdp || in dasd_ro_store()
1056 set_disk_ro(device->block->gdp, val); in dasd_ro_store()
1704 if (!device->block->gdp) { in dasd_timeout_store()
1710 blk_queue_rq_timeout(device->block->gdp->queue, val * HZ); in dasd_timeout_store()
H A Ddasd.c224 debugfs_create_dir(block->gdp->disk_name, in dasd_state_known_to_basic()
315 kobject_uevent(&disk_to_dev(device->block->gdp)->kobj, in dasd_state_basic_to_ready()
320 lim = queue_limits_start_update(block->gdp->queue); in dasd_state_basic_to_ready()
342 rc = queue_limits_commit_update(block->gdp->queue, &lim); in dasd_state_basic_to_ready()
346 set_capacity(block->gdp, block->blocks << block->s2b_shift); in dasd_state_basic_to_ready()
417 kobject_uevent(&disk_to_dev(device->block->gdp)->kobj, in dasd_state_ready_to_online()
1532 if (device->block->gdp) in dasd_generic_handle_state_change()
1533 blk_mq_run_hw_queues(device->block->gdp->queue, true); in dasd_generic_handle_state_change()
2643 blk_mq_run_hw_queues(block->gdp->queue, true); in dasd_block_timeout()
3683 if (device->block->gdp) in dasd_generic_path_operational()
[all …]
H A Ddasd_ioctl.c218 block->gdp->part0->bd_mapping->host->i_blkbits = in dasd_format()
H A Ddasd_int.h619 struct gendisk *gdp; member
H A Ddasd_eckd.c6141 struct gendisk *gdp; in dasd_eckd_copy_pair_swap() local
6175 gdp = block->gdp; in dasd_eckd_copy_pair_swap()
6176 dasd_add_link_to_gendisk(gdp, secondary); in dasd_eckd_copy_pair_swap()
6177 rc = device_move(disk_to_dev(gdp), &secondary->cdev->dev, DPM_ORDER_NONE); in dasd_eckd_copy_pair_swap()