aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2007-06-19 02:30:41 -0400
committerDavid S. Miller <davem@davemloft.net>2007-06-19 02:30:41 -0400
commit19e6454ca778e11e81497bd87c930dc0defd03d7 (patch)
tree6be1cee2976d6528665017d52bcdcfbbc4d6938f
parentcc0191aeef73e5aa0c7f9a586d4bb27ed67facbb (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.c5
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
713success:
714 ret = copied;
712out: 715out:
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
726maybe_error: 729maybe_error:
727 if (copied) 730 if (copied)
728 ret = copied; 731 goto success;
729 goto out; 732 goto out;
730 733
731efault: 734efault: