]> 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)
commitc670543b22f92334a44bb7ed3c8dafffe234d804
treecc25d73e227737862ccad90bc38919bd268c685b
parent6792918d6e80763c2deb235fb259c63fa3901886
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