diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2016-06-15 16:45:56 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-07-18 19:37:18 (GMT) |
commit | 0a7b818892e27f6a6ac728a525bd0d8a307fe2bc (patch) | |
tree | 8e35d0d8e22370c9d6877f4acf1b9c1742e42046 /drivers/md | |
parent | 0d851d14b8dfed601e165ccec2819cab492442d8 (diff) | |
download | linux-0a7b818892e27f6a6ac728a525bd0d8a307fe2bc.tar.xz |
dm raid: the sync_page_io() metadata_op argument is bool
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-raid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index e8e9b6a..0eceee8 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -1784,7 +1784,7 @@ static int read_disk_sb(struct md_rdev *rdev, int size) if (rdev->sb_loaded) return 0; - if (!sync_page_io(rdev, 0, size, rdev->sb_page, REQ_OP_READ, 0, 1)) { + if (!sync_page_io(rdev, 0, size, rdev->sb_page, REQ_OP_READ, 0, true)) { DMERR("Failed to read superblock of device at position %d", rdev->raid_disk); md_error(rdev->mddev, rdev); @@ -3258,8 +3258,8 @@ static void attempt_restore_of_faulty_devices(struct raid_set *rs) for (i = 0; i < rs->md.raid_disks; i++) { r = &rs->dev[i].rdev; if (test_bit(Faulty, &r->flags) && r->sb_page && - sync_page_io(r, 0, r->sb_size, r->sb_page, REQ_OP_READ, 0, - 1)) { + sync_page_io(r, 0, r->sb_size, r->sb_page, + REQ_OP_READ, 0, true)) { DMINFO("Faulty %s device #%d has readable super block." " Attempting to revive it.", rs->raid_type->name, i); |