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> Tested-By:
Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org Link: https://lore.kernel.org/r/158861249201.340223.13035445866976590375.stgit@warthog.procyon.org.uk/ # rfc Link: https://lore.kernel.org/r/159465825061.1377938.14403904452300909320.stgit@warthog.procyon.org.uk/ Link: https://lore.kernel.org/r/160588531418.3465195.10712005940763063144.stgit@warthog.procyon.org.uk/ # rfc Link: https://lore.kernel.org/r/161118148567.1232039.13380313332292947956.stgit@warthog.procyon.org.uk/ # rfc Link: https://lore.kernel.org/r/161161...
Showing
- fs/afs/fsclient.c 4 additions, 2 deletionsfs/afs/fsclient.c
- fs/afs/internal.h 6 additions, 0 deletionsfs/afs/internal.h
- fs/afs/rxrpc.c 9 additions, 4 deletionsfs/afs/rxrpc.c
- fs/afs/yfsclient.c 4 additions, 2 deletionsfs/afs/yfsclient.c
- include/net/af_rxrpc.h 1 addition, 1 deletioninclude/net/af_rxrpc.h
- net/rxrpc/recvmsg.c 5 additions, 4 deletionsnet/rxrpc/recvmsg.c
Please register or sign in to comment