platform_kernel-5.15/fs/fuse
Andreas Gruenbacher e1c331f4ec UPSTREAM: iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable
commit a6294593e8a1290091d0b078d5d33da5e0cd3dfe upstream

Turn iov_iter_fault_in_readable into a function that returns the number
of bytes not faulted in, similar to copy_to_user, instead of returning a
non-zero value when any of the requested pages couldn't be faulted in.
This supports the existing users that require all pages to be faulted in
as well as new users that are happy if any pages can be faulted in.

Rename iov_iter_fault_in_readable to fault_in_iov_iter_readable to make
sure this change doesn't silently break things.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 30e66b1dfc)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Idc687713cf0585664c6eae5a075b3b067ba76b5e
2022-06-10 08:12:03 +02:00
..
Kconfig virtiofs: implement dax read/write operations 2020-09-10 11:39:23 +02:00
Makefile Merge commit e7c6e405e1 ("Fix misc new gcc warnings") into android-mainline 2021-04-29 10:20:06 +01:00
OWNERS ANDROID: Add balsini@ to the FUSE OWNERS files 2021-05-14 09:45:07 +00:00
acl.c vfs: add rcu argument to ->get_acl() callback 2021-08-18 22:08:24 +02:00
control.c fuse: name fs_context consistently 2021-08-04 13:22:58 +02:00
cuse.c cuse: simplify refcount 2021-04-14 10:40:58 +02:00
dax.c \n 2021-08-30 10:24:50 -07:00
dev.c FROMLIST: mm: multi-gen LRU: groundwork 2022-04-20 17:38:55 +00:00
dir.c Merge 5.15.11 into android13-5.15 2021-12-29 11:32:19 +01:00
file.c UPSTREAM: iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable 2022-06-10 08:12:03 +02:00
fuse_i.h FROMLIST: fuse: give wakeup hints to the scheduler 2022-04-04 10:18:55 +00:00
inode.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
ioctl.c fuse: fix fileattr op failure 2022-03-16 14:23:42 +01:00
passthrough.c ANDROID: fs/fuse: Keep FUSE file times consistent with lower file 2021-09-24 13:29:48 +00:00
readdir.c fuse: fix illegal access to inode with reused nodeid 2021-06-22 09:15:36 +02:00
virtio_fs.c FROMLIST: fuse: give wakeup hints to the scheduler 2022-04-04 10:18:55 +00:00
xattr.c Revert "FROMLIST: Add flags option to get xattr method paired to..." 2021-11-20 03:15:20 +00:00