mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
drbd: drbd_send_oos(): 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>
This commit is contained in:
parent
db1b0b724e
commit
73218a3c4c
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue