Message ID | 162886603464.3940407.3790841170414793899.stgit@warthog.procyon.org.uk |
---|---|
State | New |
Headers | show |
Series | netfs: Fix READ/WRITE confusion when calling iov_iter_xarray() | expand |
diff --git a/fs/netfs/read_helper.c b/fs/netfs/read_helper.c index 2ad91f9e2a45..9320a42dfaf9 100644 --- a/fs/netfs/read_helper.c +++ b/fs/netfs/read_helper.c @@ -150,7 +150,7 @@ static void netfs_clear_unread(struct netfs_read_subrequest *subreq) { struct iov_iter iter; - iov_iter_xarray(&iter, WRITE, &subreq->rreq->mapping->i_pages, + iov_iter_xarray(&iter, READ, &subreq->rreq->mapping->i_pages, subreq->start + subreq->transferred, subreq->len - subreq->transferred); iov_iter_zero(iov_iter_count(&iter), &iter);