]> git.baikalelectronics.ru Git - kernel.git/commit
iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector()
authorVegard Nossum <vegard.nossum@oracle.com>
Sat, 8 Oct 2016 09:18:07 +0000 (11:18 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 15 Oct 2016 00:00:34 +0000 (20:00 -0400)
commit71c154a69d3a399866e78352aa1781afcd5debec
tree53d6e7bcb5ff21f6f72d12d905b5173b35c2987a
parent2b600f9a436b46d191754e4a7428e4a810928513
iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector()

Both import_iovec() and rw_copy_check_uvector() take an array
(typically small and on-stack) which is used to hold an iovec array copy
from userspace. This is to avoid an expensive memory allocation in the
fast path (i.e. few iovec elements).

The caller may have to check whether these functions actually used
the provided buffer or allocated a new one -- but this differs between
the too. Let's just add a kernel doc to clarify what the semantics are
for each function.

Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/read_write.c
lib/iov_iter.c