diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2021-07-15 23:31:02 +0300 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-10-24 16:26:05 +0300 |
commit | 42c498c18a94eed79896c50871889af52fa0822e (patch) | |
tree | a7e1776997955259906c4dbd94eb19a597dfa21d /fs/zonefs/super.c | |
parent | 00bfe02f479688a67a29019d1228f1470e26f014 (diff) | |
download | linux-42c498c18a94eed79896c50871889af52fa0822e.tar.xz |
iomap: Fix iomap_dio_rw return value for user copies
When a user copy fails in one of the helpers of iomap_dio_rw, fail with
-EFAULT instead of returning 0. This matches what iomap_dio_bio_actor
returns when it gets an -EFAULT from bio_iov_iter_get_pages. With these
changes, iomap_dio_actor now consistently fails with -EFAULT when a user
page cannot be faulted in.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/zonefs/super.c')
0 files changed, 0 insertions, 0 deletions