iov_iter: Kunit tests for copying to/from an iterator
authorDavid Howells <dhowells@redhat.com>
Fri, 8 Sep 2023 16:03:21 +0000 (17:03 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 Sep 2023 22:11:49 +0000 (15:11 -0700)
commit2d71340ff1d41a5b9fc1b30ded12d638b2e2ae96
treec537b3cb748f99f70005510e1653ea0d72f2c720
parentf741bd7178c95abd7aeac5a9d933ee542f9a5509
iov_iter: Kunit tests for copying to/from an iterator

Add some kunit tests for page extraction for ITER_BVEC, ITER_KVEC and
ITER_XARRAY type iterators.  ITER_UBUF and ITER_IOVEC aren't dealt with
as they require userspace VM interaction.  ITER_DISCARD isn't dealt with
either as that does nothing.

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: David Hildenbrand <david@redhat.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/Kconfig.debug
lib/Makefile
lib/kunit_iov_iter.c [new file with mode: 0644]