summaryrefslogtreecommitdiff
path: root/include/linux/raid/md.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/raid/md.h')
-rw-r--r--include/linux/raid/md.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h
index 98f0d1e27c4c..240dc450dcd3 100644
--- a/include/linux/raid/md.h
+++ b/include/linux/raid/md.h
@@ -40,6 +40,7 @@
#include <linux/reboot.h>
#include <linux/vmalloc.h>
#include <linux/blkpg.h>
+#include <linux/bio.h>
/*
* 'md_p.h' holds the 'physical' layout of RAID devices
@@ -61,21 +62,6 @@
#define MD_MINOR_VERSION 90
#define MD_PATCHLEVEL_VERSION 0
-/*
- * XXX(hch): This function is broken. Someone who understands the md
- * code needs to go through all callers, check whether bdev could
- * be NULL and replace it with direct calls to bdevmame.
- *
- * This would also fix the returns buffer on stack issue nicely :)
- */
-static inline const char *bdev_partition_name (struct block_device *bdev)
-{
- char b[BDEVNAME_SIZE];
-
- if (!bdev)
- return __bdevname(0, b);
- return bdevname(bdev, b);
-}
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) (mddev_t *mddev),