fuse: fix the ->direct_IO() treatment of iov_iter
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Sep 2020 21:26:56 +0000 (17:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Sep 2020 21:26:56 +0000 (17:26 -0400)
commit933a3752babcf6513117d5773d2b70782d6ad149
tree96601b8d822245cdd53e8fc4259cfab8feaa4bc7
parentffbc3dd1975f1e2dac7b1752aa8b5cac3cd5b459
fuse: fix the ->direct_IO() treatment of iov_iter

the callers rely upon having any iov_iter_truncate() done inside
->direct_IO() countered by iov_iter_reexpand().

Reported-by: Qian Cai <cai@redhat.com>
Tested-by: Qian Cai <cai@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fuse/file.c