From: Derrick Brashear Date: Sun, 8 Sep 2013 04:11:47 +0000 (-0400) Subject: libafs: update uio resid in bypasscache X-Git-Tag: upstream/1.8.0_pre1^2~1011 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a541cd929c3da567be5c745c0eb94ec56cb0da35;p=packages%2Fo%2Fopenafs.git libafs: update uio resid in bypasscache when we do a no cache read, we should decrease the resid as we use up buffer... otherwise we have no idea in the caller how much data actually got transferred Change-Id: I50072fddcde1681b3760002d5065b1c2d9b97605 Reviewed-on: http://gerrit.openafs.org/10231 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear --- diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c index 698839840..2e36d0065 100644 --- a/src/afs/afs_bypasscache.c +++ b/src/afs/afs_bypasscache.c @@ -434,6 +434,7 @@ afs_NoCacheFetchProc(struct rx_call *acall, goto done; } size -= bytes; + auio->uio_resid -= bytes; iovno = 0; } pp = (bypass_page_t)auio->uio_iov[curpage].iov_base;