summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-09-07 03:03:36 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-09-07 03:03:36 -0700
commit36bd834b4b5c9e59afc45f863075b4687077ebab (patch)
treed943f8e909af2e2d7e999452d56bed79bd6efcc7 /include/linux
parent4e49388694356ae25d69772092ade844fac54e61 (diff)
[PATCH] (3/25) Removing useless minor arguments
driverfs_remove_partitions(), devfs_register_partitions(), driverfs_create_partitions(), devfs_register_partition(), devfs_register_disc(), had lost 'minor' argument - it's always disk->first_minor these days. disk_name() takes partition number instead of minor now. Callers of wipe_partitions() in fs/block_dev.c expanded. Remaining caller passes gendisk instead of kdev_t now.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blkdev.h2
-rw-r--r--include/linux/genhd.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index e0fd1bbd5520..77fec95ff4b4 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -281,7 +281,7 @@ struct sec_size {
extern struct sec_size * blk_sec[MAX_BLKDEV];
extern struct blk_dev_struct blk_dev[MAX_BLKDEV];
-extern int wipe_partitions(kdev_t dev);
+extern int wipe_partitions(struct gendisk *disk);
extern void register_disk(struct gendisk *dev, kdev_t first, unsigned minors, struct block_device_operations *ops, long size);
extern void check_partition(struct gendisk *disk, struct block_device *bdev);
extern void generic_make_request(struct bio *bio);
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 304ebe48ec24..dcff86342667 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -240,11 +240,10 @@ struct unixware_disklabel {
#ifdef __KERNEL__
-char *disk_name (struct gendisk *hd, int minor, char *buf);
+char *disk_name (struct gendisk *hd, int part, char *buf);
-extern void devfs_register_partitions (struct gendisk *dev, int minor,
- int unregister);
-extern void driverfs_remove_partitions (struct gendisk *hd, int minor);
+extern void devfs_register_partitions (struct gendisk *dev, int unregister);
+extern void driverfs_remove_partitions (struct gendisk *hd);
static inline unsigned int disk_index (kdev_t dev)
{