summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-04-24 23:51:04 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-04-24 23:51:04 -0700
commit90012e6ec7ead7a4374f86d03ff09c4d14b41ebe (patch)
tree8a57242fa5f17fb284081a671a0ff8c276376adb /include
parent61e3b7fcb0a88fb82e93b9b5c384ae70e293ded7 (diff)
[PATCH] (13/15) big struct block_device * push (first series)
- *NOW* all places that (re)assign ->bi_dev have relevant struct block_device *. ->bi_bdev (struct block_device * equivalent of ->bi_dev) introduced, ->bi_dev removed, users updated.
Diffstat (limited to 'include')
-rw-r--r--include/linux/bio.h2
-rw-r--r--include/linux/raid/md.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 12b38c8436a2..de52fa8f15e3 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -60,7 +60,7 @@ typedef void (bio_destructor_t) (struct bio *);
struct bio {
sector_t bi_sector;
struct bio *bi_next; /* request queue link */
- kdev_t bi_dev; /* will be block device */
+ struct block_device *bi_bdev;
unsigned long bi_flags; /* status, command, etc */
unsigned long bi_rw; /* bottom bits READ/WRITE,
* top bits priority
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h
index 9ec6c82cd7a6..87ab6e773fa7 100644
--- a/include/linux/raid/md.h
+++ b/include/linux/raid/md.h
@@ -67,6 +67,10 @@ extern struct hd_struct md_hd_struct[MAX_MD_DEVS];
extern void add_mddev_mapping (mddev_t *mddev, kdev_t dev, void *data);
extern void del_mddev_mapping (mddev_t *mddev, kdev_t dev);
extern char * partition_name (kdev_t dev);
+extern inline char * bdev_partition_name (struct block_device *bdev)
+{
+ return partition_name(to_kdev_t(bdev->bd_dev));
+}
extern int register_md_personality (int p_num, mdk_personality_t *p);
extern int unregister_md_personality (int p_num);
extern mdk_thread_t * md_register_thread (void (*run) (void *data),