]> git.baikalelectronics.ru Git - kernel.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)
commitae02d52771cb8ae1cfa19331c1829ec1e66d81a9
treecc25d73e227737862ccad90bc38919bd268c685b
parent791aed17cc3f995088398af5c4e2ec0b5dff70f8
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