mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
[AF_RXRPC]: Return the number of bytes buffered in rxrpc_send_data()
Return the number of bytes buffered in rxrpc_send_data(). Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cc0191aeef
commit
19e6454ca7
1 changed files with 4 additions and 1 deletions
|
@ -640,6 +640,7 @@ static int rxrpc_send_data(struct kiocb *iocb,
|
|||
goto efault;
|
||||
sp->remain -= copy;
|
||||
skb->mark += copy;
|
||||
copied += copy;
|
||||
|
||||
len -= copy;
|
||||
segment -= copy;
|
||||
|
@ -709,6 +710,8 @@ static int rxrpc_send_data(struct kiocb *iocb,
|
|||
|
||||
} while (segment > 0);
|
||||
|
||||
success:
|
||||
ret = copied;
|
||||
out:
|
||||
call->tx_pending = skb;
|
||||
_leave(" = %d", ret);
|
||||
|
@ -725,7 +728,7 @@ call_aborted:
|
|||
|
||||
maybe_error:
|
||||
if (copied)
|
||||
ret = copied;
|
||||
goto success;
|
||||
goto out;
|
||||
|
||||
efault:
|
||||
|
|
Loading…
Reference in a new issue