mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
Cache bypass: adjust read size for non-contiguous readpages
The bypass code's readpages does deal with a non-contiguous list of pages, but it doesn't adjust the size of the read it requests from the background daemon accordingly. As a result we'll ask the server for pages we were not asked to read. Change-Id: I5468a4a68f4f415961298144f5bb581faeda540a Reviewed-on: http://gerrit.openafs.org/3282 Reviewed-by: Matt Benjamin <matt@linuxbox.com> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
parent
df682aa341
commit
0b6b2b3cab
@ -1758,6 +1758,7 @@ afs_linux_bypass_readpages(struct file *fp, struct address_space *mapping,
|
|||||||
page_cache_release(pp);
|
page_cache_release(pp);
|
||||||
iovecp[page_ix].iov_base = (void *) 0;
|
iovecp[page_ix].iov_base = (void *) 0;
|
||||||
base_index++;
|
base_index++;
|
||||||
|
ancr->length -= PAGE_SIZE;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
base_index++;
|
base_index++;
|
||||||
|
Loading…
Reference in New Issue
Block a user