projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-2.6-microblaze.git]
/
block
/
partition-generic.c
diff --git
a/block/partition-generic.c
b/block/partition-generic.c
index
91622db
..
08dabcd
100644
(file)
--- a/
block/partition-generic.c
+++ b/
block/partition-generic.c
@@
-51,6
+51,12
@@
const char *bdevname(struct block_device *bdev, char *buf)
EXPORT_SYMBOL(bdevname);
EXPORT_SYMBOL(bdevname);
+const char *bio_devname(struct bio *bio, char *buf)
+{
+ return disk_name(bio->bi_disk, bio->bi_partno, buf);
+}
+EXPORT_SYMBOL(bio_devname);
+
/*
* There's very little reason to use this, you should really
* have a struct block_device just about everywhere and use
/*
* There's very little reason to use this, you should really
* have a struct block_device just about everywhere and use