]> 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)
commit12d426ab64a1c75f1b2ee5c33e933a4c16004049
tree371d5d2175c86933dd9d569028401ad200114210
parent10f525a8cd7a525e9fc73288bb35428c9cad5e63
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