On Mon, Jan 16, 2023 at 11:08:44PM +0000, David Howells wrote: > Use the direction in the iterator functions rather than READ/WRITE. > > Add a check into __iov_iter_get_pages_alloc() that the supplied > FOLL_SOURCE/DEST_BUF gup_flag matches the ITER_SOURCE/DEST flag on the > iterator. Incidentally, s/iterator/initializer/ (or constructor, for that matter). Those are not iterators...