rxrpc: Abstract out the calculation of whether there's Tx space
authorDavid Howells <dhowells@redhat.com>
Fri, 13 Mar 2020 09:05:38 +0000 (09:05 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 13 Mar 2020 23:04:28 +0000 (23:04 +0000)
commit158fe6665389964a1de212818b4a5c52b7f7aff4
tree32069c04502f2fd60c07f0a4615c53245dae96bc
parente1f550dc44a4d535da4e25ada1b0eaf8f3417929
rxrpc: Abstract out the calculation of whether there's Tx space

Abstract out the calculation of there being sufficient Tx buffer space.
This is reproduced several times in the rxrpc sendmsg code.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/sendmsg.c