diff options
author | David Howells <dhowells@redhat.com> | 2007-06-19 02:30:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-06-19 02:30:41 -0400 |
commit | 19e6454ca778e11e81497bd87c930dc0defd03d7 (patch) | |
tree | 6be1cee2976d6528665017d52bcdcfbbc4d6938f | |
parent | cc0191aeef73e5aa0c7f9a586d4bb27ed67facbb (diff) |
[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>
-rw-r--r-- | net/rxrpc/ar-output.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/rxrpc/ar-output.c b/net/rxrpc/ar-output.c index 591c4422205e..cc9102c5b588 100644 --- a/net/rxrpc/ar-output.c +++ b/net/rxrpc/ar-output.c | |||
@@ -640,6 +640,7 @@ static int rxrpc_send_data(struct kiocb *iocb, | |||
640 | goto efault; | 640 | goto efault; |
641 | sp->remain -= copy; | 641 | sp->remain -= copy; |
642 | skb->mark += copy; | 642 | skb->mark += copy; |
643 | copied += copy; | ||
643 | 644 | ||
644 | len -= copy; | 645 | len -= copy; |
645 | segment -= copy; | 646 | segment -= copy; |
@@ -709,6 +710,8 @@ static int rxrpc_send_data(struct kiocb *iocb, | |||
709 | 710 | ||
710 | } while (segment > 0); | 711 | } while (segment > 0); |
711 | 712 | ||
713 | success: | ||
714 | ret = copied; | ||
712 | out: | 715 | out: |
713 | call->tx_pending = skb; | 716 | call->tx_pending = skb; |
714 | _leave(" = %d", ret); | 717 | _leave(" = %d", ret); |
@@ -725,7 +728,7 @@ call_aborted: | |||
725 | 728 | ||
726 | maybe_error: | 729 | maybe_error: |
727 | if (copied) | 730 | if (copied) |
728 | ret = copied; | 731 | goto success; |
729 | goto out; | 732 | goto out; |
730 | 733 | ||
731 | efault: | 734 | efault: |