aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/md.c7
-rw-r--r--include/linux/raid/md.h4
2 files changed, 5 insertions, 6 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 2ce750d4be02..8c1e1900893d 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -73,6 +73,10 @@ static void autostart_arrays (int part);
73static LIST_HEAD(pers_list); 73static LIST_HEAD(pers_list);
74static DEFINE_SPINLOCK(pers_lock); 74static DEFINE_SPINLOCK(pers_lock);
75 75
76static void md_print_devices(void);
77
78#define MD_BUG(x...) { printk("md: bug in file %s, line %d\n", __FILE__, __LINE__); md_print_devices(); }
79
76/* 80/*
77 * Current RAID-1,4,5 parallel reconstruction 'guaranteed speed limit' 81 * Current RAID-1,4,5 parallel reconstruction 'guaranteed speed limit'
78 * is 1000 KB/sec, so the extra system load does not show up that much. 82 * is 1000 KB/sec, so the extra system load does not show up that much.
@@ -1522,7 +1526,7 @@ static void print_rdev(mdk_rdev_t *rdev)
1522 printk(KERN_INFO "md: no rdev superblock!\n"); 1526 printk(KERN_INFO "md: no rdev superblock!\n");
1523} 1527}
1524 1528
1525void md_print_devices(void) 1529static void md_print_devices(void)
1526{ 1530{
1527 struct list_head *tmp, *tmp2; 1531 struct list_head *tmp, *tmp2;
1528 mdk_rdev_t *rdev; 1532 mdk_rdev_t *rdev;
@@ -5345,7 +5349,6 @@ EXPORT_SYMBOL(md_write_end);
5345EXPORT_SYMBOL(md_register_thread); 5349EXPORT_SYMBOL(md_register_thread);
5346EXPORT_SYMBOL(md_unregister_thread); 5350EXPORT_SYMBOL(md_unregister_thread);
5347EXPORT_SYMBOL(md_wakeup_thread); 5351EXPORT_SYMBOL(md_wakeup_thread);
5348EXPORT_SYMBOL(md_print_devices);
5349EXPORT_SYMBOL(md_check_recovery); 5352EXPORT_SYMBOL(md_check_recovery);
5350MODULE_LICENSE("GPL"); 5353MODULE_LICENSE("GPL");
5351MODULE_ALIAS("md"); 5354MODULE_ALIAS("md");
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h
index 66b44e5e0d6e..eb3e547c8fee 100644
--- a/include/linux/raid/md.h
+++ b/include/linux/raid/md.h
@@ -85,8 +85,6 @@ extern void md_done_sync(mddev_t *mddev, int blocks, int ok);
85extern void md_error (mddev_t *mddev, mdk_rdev_t *rdev); 85extern void md_error (mddev_t *mddev, mdk_rdev_t *rdev);
86extern void md_unplug_mddev(mddev_t *mddev); 86extern void md_unplug_mddev(mddev_t *mddev);
87 87
88extern void md_print_devices (void);
89
90extern void md_super_write(mddev_t *mddev, mdk_rdev_t *rdev, 88extern void md_super_write(mddev_t *mddev, mdk_rdev_t *rdev,
91 sector_t sector, int size, struct page *page); 89 sector_t sector, int size, struct page *page);
92extern void md_super_wait(mddev_t *mddev); 90extern void md_super_wait(mddev_t *mddev);
@@ -97,7 +95,5 @@ extern void md_new_event(mddev_t *mddev);
97 95
98extern void md_update_sb(mddev_t * mddev); 96extern void md_update_sb(mddev_t * mddev);
99 97
100#define MD_BUG(x...) { printk("md: bug in file %s, line %d\n", __FILE__, __LINE__); md_print_devices(); }
101
102#endif 98#endif
103 99