[linux-cifs-client] [PATCH 5/6] cifs: turn smb_send into a wrapper around smb_send2

Christoph Hellwig hch at infradead.org
Sun Nov 30 16:49:29 GMT 2008


On Sun, Nov 30, 2008 at 08:57:24AM -0500, Jeff Layton wrote:
> There's no need to have 2 functions to handle sending SMB calls. Turn
> smb_send into a wrapper around smb_send2. This also allows us to
> properly mark the socket as needing to be reconnected when there's a
> partial send from smb_send.
> 
> Also, in practice we always use the address and noblocksnd flag
> that's attached to the TCP_Server_Info. There's no need to pass
> them in as separate args to smb_send2.

Can you rename smb_send2 to smb_sendv while you're at it?  That's the
normal naming convention we use for functions taking vetors when a
"normal" version exists, too.



More information about the linux-cifs-client mailing list