Home
last modified time | relevance | path

Searched refs:partno (Results 1 – 2 of 2) sorted by relevance

/fs/partitions/
Dcheck.c123 char *disk_name(struct gendisk *hd, int partno, char *buf) in disk_name() argument
125 if (!partno) in disk_name()
128 snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno); in disk_name()
130 snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno); in disk_name()
137 return disk_name(bdev->bd_disk, bdev->bd_part->partno, buf); in bdevname()
203 return sprintf(buf, "%d\n", p->partno); in part_partition_show()
312 add_uevent_var(env, "PARTN=%u", part->partno); in part_uevent()
333 void delete_partition(struct gendisk *disk, int partno) in delete_partition() argument
338 if (partno >= ptbl->len) in delete_partition()
341 part = ptbl->part[partno]; in delete_partition()
[all …]
/fs/
Dblock_dev.c993 int partno; in __blkdev_get() local
1013 disk = get_gendisk(bdev->bd_dev, &partno); in __blkdev_get()
1021 if (!partno) { in __blkdev_get()
1025 bdev->bd_part = disk_get_part(disk, partno); in __blkdev_get()
1069 bdev->bd_part = disk_get_part(disk, partno); in __blkdev_get()