]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Refactor linux readpage support
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Fri, 2 Oct 2009 13:34:50 +0000 (14:34 +0100)
committerDerrick Brashear <shadow|account-1000005@unknown>
Sat, 3 Oct 2009 23:19:21 +0000 (16:19 -0700)
commit6d9ad2e4d0c5e87a8d2d02834134ca68122b8e33
tree47e3d7cb46a887256986280cf6e1702ba40f1650
parent3e164335affa617137ebf280fe4c82a51c99894e
Refactor linux readpage support

The readpage call on Linux was becoming horribly complex.

This patch refactors it into three main components - a function which
fills a locked page (without unlocking it), a function which triggers
a cache bypass operation on a page, and a function which does
conditional prefetch, based on the properties of the page that was just
read.

In addition, we abstract out the cache bypass code further, and provide
static inline variants which are simply stubbed out when cache bypass is
disabled.

Reviewed-on: http://gerrit.openafs.org/569
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_vnodeops.c