aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-03-15 20:07:20 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 10:44:34 -0500
commit2ae5f95b1a3b6d60d9ce971e7f2c8ef84c306538 (patch)
treede02cb1cb2113a2f1c0f72af0ea43d21a3af9dd6 /drivers/block/drbd/drbd_main.c
parent387eb30817f9009467a90cdbb3ab4dd0dc02a92f (diff)
drbd: drbd_send_uuids() and its variants: Return 0 upon success and an error code otherwise
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r--drivers/block/drbd/drbd_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index 29b993b9b8d7..95586870001a 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -872,7 +872,7 @@ int _drbd_send_uuids(struct drbd_conf *mdev, u64 uuid_flags)
872 int i; 872 int i;
873 873
874 if (!get_ldev_if_state(mdev, D_NEGOTIATING)) 874 if (!get_ldev_if_state(mdev, D_NEGOTIATING))
875 return 1; 875 return 0;
876 876
877 for (i = UI_CURRENT; i < UI_SIZE; i++) 877 for (i = UI_CURRENT; i < UI_SIZE; i++)
878 p.uuid[i] = mdev->ldev ? cpu_to_be64(mdev->ldev->md.uuid[i]) : 0; 878 p.uuid[i] = mdev->ldev ? cpu_to_be64(mdev->ldev->md.uuid[i]) : 0;
@@ -886,7 +886,7 @@ int _drbd_send_uuids(struct drbd_conf *mdev, u64 uuid_flags)
886 886
887 put_ldev(mdev); 887 put_ldev(mdev);
888 888
889 return !drbd_send_cmd(mdev, &mdev->tconn->data, P_UUIDS, &p.head, sizeof(p)); 889 return drbd_send_cmd(mdev, &mdev->tconn->data, P_UUIDS, &p.head, sizeof(p));
890} 890}
891 891
892int drbd_send_uuids(struct drbd_conf *mdev) 892int drbd_send_uuids(struct drbd_conf *mdev)