From: Andreas Gruenbacher Date: Wed, 16 Mar 2011 00:39:44 +0000 (+0100) Subject: drbd: drbd_send_oos(): Return 0 upon success and an error code otherwise X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73218a3c4c7ae87014b8fc258f8a16a75aad2870;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drbd: drbd_send_oos(): Return 0 upon success and an error code otherwise Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 779bf5b10d5a..93805354eec4 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -1640,7 +1640,7 @@ int drbd_send_oos(struct drbd_conf *mdev, struct drbd_request *req) p.sector = cpu_to_be64(req->i.sector); p.blksize = cpu_to_be32(req->i.size); - return !drbd_send_cmd(mdev, &mdev->tconn->data, P_OUT_OF_SYNC, &p.head, sizeof(p)); + return drbd_send_cmd(mdev, &mdev->tconn->data, P_OUT_OF_SYNC, &p.head, sizeof(p)); } /* diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index a529ffe213a6..3a2c51fd8ea0 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c @@ -1241,7 +1241,7 @@ int w_send_oos(struct drbd_work *w, int cancel) return 1; } - ok = drbd_send_oos(mdev, req); + ok = !drbd_send_oos(mdev, req); req_mod(req, OOS_HANDED_TO_NETWORK); return ok;