Lines Matching defs:part
366 struct hd_struct *part = container_of(head, struct hd_struct, rcu_head);
368 part->start_sect = 0;
369 part->nr_sects = 0;
370 part_stat_set_all(part, 0);
371 put_device(part_to_dev(part));
377 struct hd_struct *part;
382 part = ptbl->part[partno];
383 if (!part)
386 blk_free_devt(part_devt(part));
387 rcu_assign_pointer(ptbl->part[partno], NULL);
389 kobject_put(part->holder_dir);
390 device_del(part_to_dev(part));
392 call_rcu(&part->rcu_head, delete_partition_rcu_cb);
419 if (ptbl->part[partno])
476 rcu_assign_pointer(ptbl->part[partno], p);
504 struct hd_struct *part;
552 while ((part = disk_part_iter_next(&piter)))
553 kobject_uevent(&part_to_dev(part)->kobj, KOBJ_ADD);
577 struct hd_struct *part;
592 while ((part = disk_part_iter_next(&piter)))
593 delete_partition(disk, part->partno);
678 part = add_partition(disk, p, from, size,
680 if (IS_ERR(part)) {
682 disk->disk_name, p, -PTR_ERR(part));
687 md_autodetect_dev(part_to_dev(part)->devt);
718 struct hd_struct *part;
723 while ((part = disk_part_iter_next(&piter))) {
724 invalidate_partition(disk, part->partno);
725 delete_partition(disk, part->partno);