mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-08 14:23:19 +00:00
md/raid1: get rid of extra blank line and space
This patch get rid of extra blank line and space, and add necessary space for code. Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
e5b521ee9b
commit
ebfeb444fa
@ -1424,7 +1424,6 @@ static void raid1_write_request(struct mddev *mddev, struct bio *bio,
|
|||||||
if (!r1_bio->bios[i])
|
if (!r1_bio->bios[i])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
||||||
if (first_clone) {
|
if (first_clone) {
|
||||||
/* do behind I/O ?
|
/* do behind I/O ?
|
||||||
* Not if there are too many, or cannot
|
* Not if there are too many, or cannot
|
||||||
@ -1704,9 +1703,8 @@ static int raid1_add_disk(struct mddev *mddev, struct md_rdev *rdev)
|
|||||||
first = last = rdev->saved_raid_disk;
|
first = last = rdev->saved_raid_disk;
|
||||||
|
|
||||||
for (mirror = first; mirror <= last; mirror++) {
|
for (mirror = first; mirror <= last; mirror++) {
|
||||||
p = conf->mirrors+mirror;
|
p = conf->mirrors + mirror;
|
||||||
if (!p->rdev) {
|
if (!p->rdev) {
|
||||||
|
|
||||||
if (mddev->gendisk)
|
if (mddev->gendisk)
|
||||||
disk_stack_limits(mddev->gendisk, rdev->bdev,
|
disk_stack_limits(mddev->gendisk, rdev->bdev,
|
||||||
rdev->data_offset << 9);
|
rdev->data_offset << 9);
|
||||||
@ -2863,7 +2861,6 @@ static sector_t raid1_sync_request(struct mddev *mddev, sector_t sector_nr,
|
|||||||
if (read_targets == 1)
|
if (read_targets == 1)
|
||||||
bio->bi_opf &= ~MD_FAILFAST;
|
bio->bi_opf &= ~MD_FAILFAST;
|
||||||
generic_make_request(bio);
|
generic_make_request(bio);
|
||||||
|
|
||||||
}
|
}
|
||||||
return nr_sectors;
|
return nr_sectors;
|
||||||
}
|
}
|
||||||
@ -3064,7 +3061,7 @@ static int raid1_run(struct mddev *mddev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
mddev->degraded = 0;
|
mddev->degraded = 0;
|
||||||
for (i=0; i < conf->raid_disks; i++)
|
for (i = 0; i < conf->raid_disks; i++)
|
||||||
if (conf->mirrors[i].rdev == NULL ||
|
if (conf->mirrors[i].rdev == NULL ||
|
||||||
!test_bit(In_sync, &conf->mirrors[i].rdev->flags) ||
|
!test_bit(In_sync, &conf->mirrors[i].rdev->flags) ||
|
||||||
test_bit(Faulty, &conf->mirrors[i].rdev->flags))
|
test_bit(Faulty, &conf->mirrors[i].rdev->flags))
|
||||||
@ -3099,7 +3096,7 @@ static int raid1_run(struct mddev *mddev)
|
|||||||
mddev->queue);
|
mddev->queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = md_integrity_register(mddev);
|
ret = md_integrity_register(mddev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
md_unregister_thread(&mddev->thread);
|
md_unregister_thread(&mddev->thread);
|
||||||
raid1_free(mddev, conf);
|
raid1_free(mddev, conf);
|
||||||
|
Loading…
Reference in New Issue
Block a user