Lines Matching refs:part0
60 struct block_device *bdev = disk->part0; in set_capacity()
370 if (disk->part0->bd_holder && disk->part0->bd_holder != owner) in disk_scan_partitions()
473 disk->part0->bd_holder_dir = in device_add_disk()
475 if (!disk->part0->bd_holder_dir) { in device_add_disk()
504 bdev_add(disk->part0, ddev->devt); in device_add_disk()
520 disk->part0->bd_dev = MKDEV(disk->major, disk->first_minor); in device_add_disk()
538 kobject_put(disk->part0->bd_holder_dir); in device_add_disk()
602 remove_inode_hash(disk->part0->bd_inode); in del_gendisk()
606 fsync_bdev(disk->part0); in del_gendisk()
607 __invalidate_device(disk->part0, true); in del_gendisk()
634 kobject_put(disk->part0->bd_holder_dir); in del_gendisk()
638 part_stat_set_all(disk->part0, 0); in del_gendisk()
639 disk->part0->bd_stamp = 0; in del_gendisk()
688 struct block_device *bdev = disk->part0; in invalidate_disk()
1027 return sprintf(buf, "%d\n", bdev_alignment_offset(disk->part0)); in disk_alignment_offset_show()
1036 return sprintf(buf, "%d\n", bdev_alignment_offset(disk->part0)); in disk_discard_alignment_show()
1186 iput(disk->part0->bd_inode); /* frees the disk */ in disk_release()
1375 disk->part0 = bdev_alloc(disk, 0); in __alloc_disk_node()
1376 if (!disk->part0) in __alloc_disk_node()
1382 if (xa_insert(&disk->part_tbl, 0, disk->part0, GFP_KERNEL)) in __alloc_disk_node()
1404 disk->part0->bd_disk = NULL; in __alloc_disk_node()
1405 iput(disk->part0->bd_inode); in __alloc_disk_node()