iov_iter: Define flags to qualify page extraction.
authorDavid Howells <dhowells@redhat.com>
Thu, 19 Jan 2023 12:47:23 +0000 (12:47 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 14 Feb 2023 17:09:41 +0000 (17:09 +0000)
commit51e851b5d16fc5b966e3f697bb4d0ee4c55de354
tree0872d8f18ca500f9db092531f1260d2bb3cae401
parent45b94876f54e197ba890c8df92ed720e9082246c
iov_iter: Define flags to qualify page extraction.

Define flags to qualify page extraction to pass into iov_iter_*_pages*()
rather than passing in FOLL_* flags.

For now only a flag to allow peer-to-peer DMA is supported.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
cc: Al Viro <viro@zeniv.linux.org.uk>
cc: Jens Axboe <axboe@kernel.dk>
cc: Logan Gunthorpe <logang@deltatee.com>
cc: linux-fsdevel@vger.kernel.org
cc: linux-block@vger.kernel.org
block/bio.c
block/blk-map.c
include/linux/uio.h
lib/iov_iter.c