summaryrefslogtreecommitdiff
path: root/include/linux/raid/md.h
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-07-04 08:53:44 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-04 08:53:44 -0700
commit881c3bc1a70c9aaf69d0b0ca115b706ba7ededc3 (patch)
tree9b9562f101f0039c60e3b78960c8c092ba2be317 /include/linux/raid/md.h
parentf3ddcd6baa20805fea6fe560471f91b0b24fa2e5 (diff)
[PATCH] raid kdev_t cleanups - part 2
* a bunch of callers of partition_name() are calling bdev_partition_name(), * the last users of raid1 and multipath ->dev are gone; so are the fields in question.
Diffstat (limited to 'include/linux/raid/md.h')
-rw-r--r--include/linux/raid/md.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h
index 6dfe08ccfbfe..280092c6e95b 100644
--- a/include/linux/raid/md.h
+++ b/include/linux/raid/md.h
@@ -66,7 +66,7 @@ extern struct hd_struct md_hd_struct[MAX_MD_DEVS];
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));
+ return partition_name(bdev ? to_kdev_t(bdev->bd_dev) : NODEV);
}
extern int register_md_personality (int p_num, mdk_personality_t *p);
extern int unregister_md_personality (int p_num);