aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index c4b913409226..4e3843f7d245 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1044,7 +1044,7 @@ static void raid1_unplug(struct blk_plug_cb *cb, bool from_schedule)
1044 kfree(plug); 1044 kfree(plug);
1045} 1045}
1046 1046
1047static void make_request(struct mddev *mddev, struct bio * bio) 1047static void raid1_make_request(struct mddev *mddev, struct bio * bio)
1048{ 1048{
1049 struct r1conf *conf = mddev->private; 1049 struct r1conf *conf = mddev->private;
1050 struct raid1_info *mirror; 1050 struct raid1_info *mirror;
@@ -1422,7 +1422,7 @@ read_again:
1422 wake_up(&conf->wait_barrier); 1422 wake_up(&conf->wait_barrier);
1423} 1423}
1424 1424
1425static void status(struct seq_file *seq, struct mddev *mddev) 1425static void raid1_status(struct seq_file *seq, struct mddev *mddev)
1426{ 1426{
1427 struct r1conf *conf = mddev->private; 1427 struct r1conf *conf = mddev->private;
1428 int i; 1428 int i;
@@ -1439,7 +1439,7 @@ static void status(struct seq_file *seq, struct mddev *mddev)
1439 seq_printf(seq, "]"); 1439 seq_printf(seq, "]");
1440} 1440}
1441 1441
1442static void error(struct mddev *mddev, struct md_rdev *rdev) 1442static void raid1_error(struct mddev *mddev, struct md_rdev *rdev)
1443{ 1443{
1444 char b[BDEVNAME_SIZE]; 1444 char b[BDEVNAME_SIZE];
1445 struct r1conf *conf = mddev->private; 1445 struct r1conf *conf = mddev->private;
@@ -2472,7 +2472,8 @@ static int init_resync(struct r1conf *conf)
2472 * that can be installed to exclude normal IO requests. 2472 * that can be installed to exclude normal IO requests.
2473 */ 2473 */
2474 2474
2475static sector_t sync_request(struct mddev *mddev, sector_t sector_nr, int *skipped) 2475static sector_t raid1_sync_request(struct mddev *mddev, sector_t sector_nr,
2476 int *skipped)
2476{ 2477{
2477 struct r1conf *conf = mddev->private; 2478 struct r1conf *conf = mddev->private;
2478 struct r1bio *r1_bio; 2479 struct r1bio *r1_bio;
@@ -2890,7 +2891,7 @@ static struct r1conf *setup_conf(struct mddev *mddev)
2890} 2891}
2891 2892
2892static void raid1_free(struct mddev *mddev, void *priv); 2893static void raid1_free(struct mddev *mddev, void *priv);
2893static int run(struct mddev *mddev) 2894static int raid1_run(struct mddev *mddev)
2894{ 2895{
2895 struct r1conf *conf; 2896 struct r1conf *conf;
2896 int i; 2897 int i;
@@ -3170,15 +3171,15 @@ static struct md_personality raid1_personality =
3170 .name = "raid1", 3171 .name = "raid1",
3171 .level = 1, 3172 .level = 1,
3172 .owner = THIS_MODULE, 3173 .owner = THIS_MODULE,
3173 .make_request = make_request, 3174 .make_request = raid1_make_request,
3174 .run = run, 3175 .run = raid1_run,
3175 .free = raid1_free, 3176 .free = raid1_free,
3176 .status = status, 3177 .status = raid1_status,
3177 .error_handler = error, 3178 .error_handler = raid1_error,
3178 .hot_add_disk = raid1_add_disk, 3179 .hot_add_disk = raid1_add_disk,
3179 .hot_remove_disk= raid1_remove_disk, 3180 .hot_remove_disk= raid1_remove_disk,
3180 .spare_active = raid1_spare_active, 3181 .spare_active = raid1_spare_active,
3181 .sync_request = sync_request, 3182 .sync_request = raid1_sync_request,
3182 .resize = raid1_resize, 3183 .resize = raid1_resize,
3183 .size = raid1_size, 3184 .size = raid1_size,
3184 .check_reshape = raid1_reshape, 3185 .check_reshape = raid1_reshape,