提交 73218a3c 编写于 作者: A Andreas Gruenbacher 提交者: Philipp Reisner

drbd: drbd_send_oos(): Return 0 upon success and an error code otherwise

Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: NLars Ellenberg <lars.ellenberg@linbit.com>
上级 db1b0b72
......@@ -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));
}
/*
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册