]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
afs: Don't truncate iter during data fetch
authorDavid Howells <dhowells@redhat.com>
Thu, 6 Feb 2020 14:22:28 +0000 (14:22 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Jan 2021 10:56:59 +0000 (10:56 +0000)
commite43aed22abf213397064605739646e226d7d9d58
tree79ab8649762ff13a7e19a23796155e891763e480
parent1c43b142e4a975958d7bbf3b35e705cf0723743f
afs: Don't truncate iter during data fetch

Don't truncate the iterator to correspond to the actual data size when
fetching the data from the server - rather, pass the length we want to read
to rxrpc.

This will allow the clear-after-read code in future to simply clear the
remaining iterator capacity rather than having to reinitialise the
iterator.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/fsclient.c
fs/afs/internal.h
fs/afs/rxrpc.c
fs/afs/yfsclient.c
include/net/af_rxrpc.h
net/rxrpc/recvmsg.c