]> git.itanic.dy.fi Git - linux-stable/commit
cifs: use discard iterator to discard unneeded network data more efficiently
authorDavid Howells <dhowells@redhat.com>
Thu, 4 Feb 2021 06:15:21 +0000 (00:15 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 26 Feb 2021 01:08:06 +0000 (19:08 -0600)
commitcf0604a686b11175d8beae60281c4ccc95aaa5c2
tree62ad782990865ba28f748e9e780925e1cc7a7693
parent5ff2836ed3a5c24420a7235be25a462594cdc4ea
cifs: use discard iterator to discard unneeded network data more efficiently

The iterator, ITER_DISCARD, that can only be used in READ mode and
just discards any data copied to it, was added to allow a network
filesystem to discard any unwanted data sent by a server.
Convert cifs_discard_from_socket() to use this.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/connect.c