From: Hartmut Reuter Date: Thu, 18 Oct 2012 13:38:50 +0000 (-0400) Subject: linux: bypass readpages should update nocache read parms X-Git-Tag: upstream/1.8.0_pre1^2~1851 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4a8e1385844eb3a1c6c70758baa7522cf35130df;p=packages%2Fo%2Fopenafs.git linux: bypass readpages should update nocache read parms the nocache read parms need to have the offset updated during a bypass readpages request Change-Id: Iced321e6eeab7fd784c5ccb871fcda7ff9c7493d Reviewed-on: http://gerrit.openafs.org/8254 Reviewed-by: Derrick Brashear Tested-by: BuildBot Reviewed-by: Marc Dionne --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 11062ce4e..f089f14b3 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -2129,7 +2129,7 @@ afs_linux_bypass_readpages(struct file *fp, struct address_space *mapping, if(page_ix == 0) { offset = page_offset(pp); - auio->uio_offset = offset; + ancr->offset = auio->uio_offset = offset; base_index = pp->index; } iovecp[page_ix].iov_len = PAGE_SIZE;