summaryrefslogtreecommitdiff
path: root/include/linux/raid/md.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2003-05-26 07:06:15 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-05-26 07:06:15 -0700
commit45b3e77f55bd67cc86e50fe7bd7411de5d1b6ad8 (patch)
treeae473bfff9adbb8488a7b28fae9874142b9e5998 /include/linux/raid/md.h
parent89670a77a16fa2e5c917d481344f5ead324eedc8 (diff)
[PATCH] md: Replace bdev_partition_name with calls to bdevname
Diffstat (limited to 'include/linux/raid/md.h')
-rw-r--r--include/linux/raid/md.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h
index 23b3a550b753..240dc450dcd3 100644
--- a/include/linux/raid/md.h
+++ b/include/linux/raid/md.h
@@ -62,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),