]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfs: Fix READ/WRITE confusion when calling iov_iter_xarray()
authorDavid Howells <dhowells@redhat.com>
Mon, 26 Jul 2021 09:37:57 +0000 (10:37 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 5 Oct 2021 10:22:06 +0000 (11:22 +0100)
commit330de47d14af0c3995db81cc03cf5ca683d94d81
treeed26377773d45ce546f568f3edf9935ca5f67a29
parenta0e25f0a0d39d66c048d5dbac1e7ebaa6ec885d7
netfs: Fix READ/WRITE confusion when calling iov_iter_xarray()

Fix netfs_clear_unread() to pass READ to iov_iter_xarray() instead of WRITE
(the flag is about the operation accessing the buffer, not what sort of
access it is doing to the buffer).

Fixes: 3d3c95046742 ("netfs: Provide readahead and readpage netfs helpers")
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
cc: linux-afs@lists.infradead.org
cc: ceph-devel@vger.kernel.org
cc: linux-cifs@vger.kernel.org
cc: linux-nfs@vger.kernel.org
cc: v9fs-developer@lists.sourceforge.net
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
Link: https://lore.kernel.org/r/162729351325.813557.9242842205308443901.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/162886603464.3940407.3790841170414793899.stgit@warthog.procyon.org.uk
Link: https://lore.kernel.org/r/163239074602.1243337.14154704004485867017.stgit@warthog.procyon.org.uk
fs/netfs/read_helper.c