]> git.baikalelectronics.ru Git - kernel.git/commit
ITER_PIPE: fold data_start() and pipe_space_for_user() together
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Jun 2022 13:44:38 +0000 (09:44 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Aug 2022 02:37:19 +0000 (22:37 -0400)
commit37f56af5d1afb5ff590e70238bc026f550ee7665
tree371d5d2175c86933dd9d569028401ad200114210
parent78febf1e3ebbac4cb48a9fef088420b9992eebdc
ITER_PIPE: fold data_start() and pipe_space_for_user() together

All their callers are next to each other; all of them
want the total amount of pages and, possibly, the
offset in the partial final buffer.

Combine into a new helper (pipe_npages()), fix the
bogosity in pipe_space_for_user(), while we are at it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/pipe_fs_i.h
lib/iov_iter.c