Re: [PATCH v3 2/2] iov_iter: Don't deal with iter->copy_mc in memcpy_from_iter_mc()

From: David Howells
Date: Fri Aug 18 2023 - 07:44:16 EST


Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> Well, that part is trivially fixable, and we should do that anyway for
> other reasons.
> ..
> enum iter_type {
> /* iter types */
> - ITER_IOVEC,
> - ITER_KVEC,
> - ITER_BVEC,
> - ITER_XARRAY,
> - ITER_DISCARD,
> - ITER_UBUF,
> + ITER_IOVEC = 1,
> + ITER_UBUF = 2,
> + ITER_KVEC = 4,
> + ITER_BVEC = 8,
> + ITER_XARRAY = 16,
> + ITER_DISCARD = 32,
> };

It used to be this way, but Al switched it:

8cd54c1c848031a87820e58d772166ffdf8c08c0
iov_iter: separate direction from flavour

David