Commit 5a190951 authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman
Browse files

use less confusing names for iov_iter direction initializers



[ Upstream commit de4eda9d ]

READ/WRITE proved to be actively confusing - the meanings are
"data destination, as used with read(2)" and "data source, as
used with write(2)", but people keep interpreting those as
"we read data from it" and "we write data to it", i.e. exactly
the wrong way.

Call them ITER_DEST and ITER_SOURCE - at least that is harder
to misinterpret...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Stable-dep-of: 6dd88fd5 ("vhost-scsi: unbreak any layout for response")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6d6e144f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment