Message ID | 1010626.1667584040@warthog.procyon.org.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | iov_iter: Declare new iterator direction symbols | expand |
On Fri, Nov 4, 2022 at 10:47 AM David Howells <dhowells@redhat.com> wrote: > > If we're going to go with Al's changes to switch to using ITER_SOURCE and > ITER_DEST instead of READ/WRITE, can we put just the new symbols into mainline > now, even if we leave the rest for the next merge window? No, I really don't want to have mixed-used stuff in the kernel. Continue to use the old names until/if the conversion happens, at which point it's the conversion code that does it. No "one branch uses new names, another uses old names" mess. Linus
diff --git a/include/linux/uio.h b/include/linux/uio.h index 2e3134b14ffd..7c1317b34c57 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -29,6 +29,11 @@ enum iter_type { ITER_UBUF, }; +enum iov_iter_direction { + ITER_DEST = 0, /* Iterator is a destination buffer (== READ) */ + ITER_SOURCE = 1, /* Iterator is a source buffer (== WRITE) */ +}; + struct iov_iter_state { size_t iov_offset; size_t count;