drbd: Refer to resync-rate consistently throughout the code
[deliverable/linux.git] / drivers / block / drbd / drbd_main.c
index 86c8bc5ac603d23050a1da1c4d6e23edd8d277b9..26d7763d5255a9a640727c93f18ea99d107cd201 100644 (file)
@@ -888,14 +888,14 @@ int drbd_send_sync_param(struct drbd_conf *mdev)
 
        if (get_ldev(mdev)) {
                dc = rcu_dereference(mdev->ldev->disk_conf);
-               p->rate = cpu_to_be32(dc->resync_rate);
+               p->resync_rate = cpu_to_be32(dc->resync_rate);
                p->c_plan_ahead = cpu_to_be32(dc->c_plan_ahead);
                p->c_delay_target = cpu_to_be32(dc->c_delay_target);
                p->c_fill_target = cpu_to_be32(dc->c_fill_target);
                p->c_max_rate = cpu_to_be32(dc->c_max_rate);
                put_ldev(mdev);
        } else {
-               p->rate = cpu_to_be32(DRBD_RATE_DEF);
+               p->resync_rate = cpu_to_be32(DRBD_RESYNC_RATE_DEF);
                p->c_plan_ahead = cpu_to_be32(DRBD_C_PLAN_AHEAD_DEF);
                p->c_delay_target = cpu_to_be32(DRBD_C_DELAY_TARGET_DEF);
                p->c_fill_target = cpu_to_be32(DRBD_C_FILL_TARGET_DEF);
This page took 0.024101 seconds and 5 git commands to generate.