Use readpage, not read for fastpath access
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 14 Jul 2009 22:39:44 +0000 (23:39 +0100)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 29 Sep 2009 19:09:32 +0000 (12:09 -0700)
commit88a037585d65e31e9d832bea89bb1cc1f107ab0f
treec586828a5ca28f589a462735e1f9a02285d6013c
parentc4bffd7efbcf27f7a8c9c0f81c4b79d3251a5d3a
Use readpage, not read for fastpath access

Modify the fast path case so that it uses readpage(), rather than read()
to access data in the cache. This removes a lot of the hidden, uncessary
work that the kernel was doing behind the scenes, and takes advantage of
the fact that we know a page read will always result in a page read
against the backing cache.

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