X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=block%2Fpartition-generic.c;h=08dabcd8b6aefc6844bbb9d9e9c001e6ff71fb33;hb=be75b1b8bc0814b8f76e4e7bb970c76d05ddf3b1;hp=91622db9aedffd997947642a5872802312346869;hpb=cf40a76e7d5874bb25f4404eecc58a2e033af885;p=linux-2.6-microblaze.git diff --git a/block/partition-generic.c b/block/partition-generic.c index 91622db9aedf..08dabcd8b6ae 100644 --- 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); +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