mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
cache bypass Also increment page refcount in readpage
As noticed by a commenter, afs_linux_bypass_readpage needs the same get_page operation as in afs_linux_bypass_readpages, as background page accounting assumes we have done it. Change-Id: Ib2e1cb7ec971e68b022dd1740584369d04b8b833 Reviewed-on: http://gerrit.openafs.org/2626 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
239a62034b
commit
aaf9b4ddd5
@ -1829,7 +1829,7 @@ afs_linux_bypass_readpage(struct file *fp, struct page *pp)
|
||||
PAGE_SIZE, UIO_READ, AFS_UIOSYS);
|
||||
|
||||
/* save the page for background map */
|
||||
/* XXX - Shouldn't we get a reference count here? */
|
||||
get_page(pp); /* see above */
|
||||
auio->uio_iov->iov_base = (void*) pp;
|
||||
/* the background thread will free this */
|
||||
ancr = osi_Alloc(sizeof(struct nocache_read_request));
|
||||
|
Loading…
Reference in New Issue
Block a user