]> asedeno.scripts.mit.edu Git - linux.git/commit
iov_iter: Add I/O discard iterator
authorDavid Howells <dhowells@redhat.com>
Fri, 19 Oct 2018 23:57:56 +0000 (00:57 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Oct 2018 23:41:07 +0000 (00:41 +0100)
commit9ea9ce0427aab02a2fd88fc608267cf6952119f1
treecc25d73e227737862ccad90bc38919bd268c685b
parentaa563d7bca6e882ec2bdae24603c8f016401a144
iov_iter: Add I/O discard iterator

Add a new iterator, ITER_DISCARD, that can only be used in READ mode and
just discards any data copied to it.

This is useful in a network filesystem for discarding any unwanted data
sent by a server.

Signed-off-by: David Howells <dhowells@redhat.com>
include/linux/uio.h
lib/iov_iter.c