]> git.baikalelectronics.ru Git - kernel.git/commit
use less confusing names for iov_iter direction initializers
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 16 Sep 2022 00:25:47 +0000 (20:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:04 +0000 (11:28 +0100)
commit273e525fa78c07ccaacdc7f96a21f29a6343a39d
tree5e0833622f5b6a24bbc916187fa9a6656060b056
parent1c70d08cc5bae73181dd24c895e22ccb1ea3ba41
use less confusing names for iov_iter direction initializers

[ Upstream commit de4eda9de2d957ef2d6a8365a01e26a435e958cb ]

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: Al Viro <viro@zeniv.linux.org.uk>
Stable-dep-of: 6dd88fd59da8 ("vhost-scsi: unbreak any layout for response")
Signed-off-by: Sasha Levin <sashal@kernel.org>
87 files changed:
arch/s390/kernel/crash_dump.c
arch/s390/mm/maccess.c
arch/x86/kernel/cpu/microcode/intel.c
arch/x86/kernel/crash_dump_64.c
crypto/testmgr.c
drivers/acpi/pfr_update.c
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_receiver.c
drivers/block/loop.c
drivers/block/nbd.c
drivers/char/random.c
drivers/fsi/fsi-sbefifo.c
drivers/infiniband/ulp/rtrs/rtrs-clt.c
drivers/isdn/mISDN/l1oip_core.c
drivers/misc/vmw_vmci/vmci_queue_pair.c
drivers/net/ppp/ppp_generic.c
drivers/nvme/host/tcp.c
drivers/nvme/target/io-cmd-file.c
drivers/nvme/target/tcp.c
drivers/s390/char/zcore.c
drivers/scsi/sg.c
drivers/target/iscsi/iscsi_target_util.c
drivers/target/target_core_file.c
drivers/usb/usbip/usbip_common.c
drivers/vhost/net.c
drivers/vhost/scsi.c
drivers/vhost/vhost.c
drivers/vhost/vringh.c
drivers/vhost/vsock.c
drivers/xen/pvcalls-back.c
fs/9p/vfs_addr.c
fs/9p/vfs_dir.c
fs/9p/xattr.c
fs/afs/cmservice.c
fs/afs/dir.c
fs/afs/file.c
fs/afs/internal.h
fs/afs/rxrpc.c
fs/afs/write.c
fs/aio.c
fs/btrfs/ioctl.c
fs/ceph/addr.c
fs/ceph/file.c
fs/cifs/connect.c
fs/cifs/file.c
fs/cifs/fscache.c
fs/cifs/smb2ops.c
fs/cifs/transport.c
fs/coredump.c
fs/erofs/fscache.c
fs/fscache/io.c
fs/fuse/ioctl.c
fs/netfs/io.c
fs/nfs/fscache.c
fs/nfsd/vfs.c
fs/ocfs2/cluster/tcp.c
fs/orangefs/inode.c
fs/proc/vmcore.c
fs/read_write.c
fs/seq_file.c
fs/splice.c
include/linux/uio.h
io_uring/net.c
io_uring/rw.c
kernel/trace/trace_events_user.c
mm/madvise.c
mm/page_io.c
mm/process_vm_access.c
net/9p/client.c
net/bluetooth/6lowpan.c
net/bluetooth/a2mp.c
net/bluetooth/smp.c
net/ceph/messenger_v1.c
net/ceph/messenger_v2.c
net/compat.c
net/ipv4/tcp.c
net/netfilter/ipvs/ip_vs_sync.c
net/smc/smc_clc.c
net/smc/smc_tx.c
net/socket.c
net/sunrpc/socklib.c
net/sunrpc/svcsock.c
net/sunrpc/xprtsock.c
net/tipc/topsrv.c
net/tls/tls_device.c
net/xfrm/espintcp.c
security/keys/keyctl.c