/linux-3.4.99/drivers/s390/block/ |
D | dasd_genhd.c | 32 struct gendisk *gdp; in dasd_gendisk_alloc() local 41 gdp = alloc_disk(1 << DASD_PARTN_BITS); in dasd_gendisk_alloc() 42 if (!gdp) in dasd_gendisk_alloc() 46 gdp->major = DASD_MAJOR; in dasd_gendisk_alloc() 47 gdp->first_minor = base->devindex << DASD_PARTN_BITS; in dasd_gendisk_alloc() 48 gdp->fops = &dasd_device_operations; in dasd_gendisk_alloc() 49 gdp->driverfs_dev = &base->cdev->dev; in dasd_gendisk_alloc() 58 len = sprintf(gdp->disk_name, "dasd"); in dasd_gendisk_alloc() 62 len += sprintf(gdp->disk_name + len, "%c", in dasd_gendisk_alloc() 65 len += sprintf(gdp->disk_name + len, "%c", in dasd_gendisk_alloc() [all …]
|
D | dasd_proc.c | 59 if (block->gdp) in dasd_devices_show() 61 MAJOR(disk_devt(block->gdp)), in dasd_devices_show() 62 MINOR(disk_devt(block->gdp))); in dasd_devices_show() 66 if (block->gdp) in dasd_devices_show() 67 seq_printf(m, " is %-8s", block->gdp->disk_name); in dasd_devices_show()
|
D | dasd_devmap.c | 677 void dasd_add_link_to_gendisk(struct gendisk *gdp, struct dasd_device *device) in dasd_add_link_to_gendisk() argument 685 gdp->private_data = devmap; in dasd_add_link_to_gendisk() 689 struct dasd_device *dasd_device_from_gendisk(struct gendisk *gdp) in dasd_device_from_gendisk() argument 694 if (!gdp->private_data) in dasd_device_from_gendisk() 698 devmap = gdp->private_data; in dasd_device_from_gendisk() 801 if (device && device->block && device->block->gdp) in dasd_ro_store() 802 set_disk_ro(device->block->gdp, val); in dasd_ro_store()
|
D | dasd_ioctl.c | 59 (loff_t)get_capacity(base->block->gdp) << 9); in dasd_ioctl_enable() 176 struct block_device *bdev = bdget_disk(block->gdp, 0); in dasd_format()
|
D | dasd_int.h | 478 struct gendisk *gdp; member
|
D | dasd.c | 257 dasd_debugfs_setup(block->gdp->disk_name, in dasd_state_known_to_basic() 340 set_capacity(block->gdp, in dasd_state_basic_to_ready() 409 disk = device->block->gdp; in dasd_state_ready_to_online()
|
/linux-3.4.99/fs/ext4/ |
D | ialloc.c | 71 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 …]
|
D | balloc.c | 67 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 …]
|
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 | 1881 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 …]
|
D | resize.c | 1088 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 …]
|
D | mballoc.c | 2731 struct ext4_group_desc *gdp; in ext4_mb_mark_diskspace_used() local 2754 gdp = ext4_get_group_desc(sb, ac->ac_b_ex.fe_group, &gdp_bh); in ext4_mb_mark_diskspace_used() 2755 if (!gdp) in ext4_mb_mark_diskspace_used() 2759 ext4_free_group_clusters(sb, gdp)); in ext4_mb_mark_diskspace_used() 2797 if (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { in ext4_mb_mark_diskspace_used() 2798 gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); in ext4_mb_mark_diskspace_used() 2799 ext4_free_group_clusters_set(sb, gdp, in ext4_mb_mark_diskspace_used() 2801 ac->ac_b_ex.fe_group, gdp)); in ext4_mb_mark_diskspace_used() 2803 len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len; in ext4_mb_mark_diskspace_used() 2804 ext4_free_group_clusters_set(sb, gdp, len); in ext4_mb_mark_diskspace_used() [all …]
|
D | ext4.h | 1824 struct ext4_group_desc *gdp); 1827 struct ext4_group_desc *gdp); 2031 struct ext4_group_desc *gdp); 2033 struct ext4_group_desc *gdp);
|
D | inode.c | 3440 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() 3497 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp)); in __ext4_get_inode_loc() 3535 table = ext4_inode_table(sb, gdp); in __ext4_get_inode_loc() 3544 num -= ext4_itable_unused_count(sb, gdp); in __ext4_get_inode_loc()
|
/linux-3.4.99/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() 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 …]
|
D | balloc.c | 1500 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 …]
|
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 | 1385 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()
|
D | inode.c | 2689 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()
|
/linux-3.4.99/fs/ext2/ |
D | ialloc.c | 172 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 …]
|
D | balloc.c | 1231 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 …]
|
D | super.c | 638 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()
|
D | inode.c | 1216 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()
|