uio: make import_iovec()/compat_import_iovec() return bytes on success
authorJens Axboe <axboe@kernel.dk>
Tue, 14 May 2019 22:02:22 +0000 (16:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 31 May 2019 21:30:03 +0000 (15:30 -0600)
commit87e5e6dab6c2a21fab2620f37786276d202e2ce0
tree617496186deb33cc30c77506130bc21973c77710
parent61939b12dc24d0ac958020f261046c35a16e0c48
uio: make import_iovec()/compat_import_iovec() return bytes on success

Currently these functions return < 0 on error, and 0 for success.
Change that so that we return < 0 on error, but number of bytes
for success.

Some callers already treat the return value that way, others need a
slight tweak.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/aio.c
fs/io_uring.c
fs/splice.c
include/linux/uio.h
lib/iov_iter.c
net/compat.c
net/socket.c