You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
drbd: drbd_send_ack(): 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:
committed by
Philipp Reisner
parent
a8c32aa846
commit
dd5161218b
@@ -1288,10 +1288,10 @@ int drbd_send_ack_rp(struct drbd_conf *mdev, enum drbd_packet cmd,
|
||||
int drbd_send_ack(struct drbd_conf *mdev, enum drbd_packet cmd,
|
||||
struct drbd_peer_request *peer_req)
|
||||
{
|
||||
return !_drbd_send_ack(mdev, cmd,
|
||||
cpu_to_be64(peer_req->i.sector),
|
||||
cpu_to_be32(peer_req->i.size),
|
||||
peer_req->block_id);
|
||||
return _drbd_send_ack(mdev, cmd,
|
||||
cpu_to_be64(peer_req->i.sector),
|
||||
cpu_to_be32(peer_req->i.size),
|
||||
peer_req->block_id);
|
||||
}
|
||||
|
||||
/* This function misuses the block_id field to signal if the blocks
|
||||
|
||||
Reference in New Issue
Block a user