MMAP Optimization
authorPrasad Joshi <pjoshi@stec-inc.com>
Sat, 28 May 2011 01:53:07 +0000 (02:53 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 1 Jul 2011 19:22:52 +0000 (12:22 -0700)
commitdde471ef5a07bd569deeadd3e9a88655db3e10ab
treea6fc4f05594420aa7b4a1337c7db1da7bae61113
parent2a005961a48e748632e96272915192dab6ce9401
MMAP Optimization

Enable zfs_getpage, zfs_fillpage, zfs_putpage, zfs_putapage functions.
The functions have been modified to make them Linux friendly.

ZFS uses these functions to read/write the mmapped pages. Using them
from readpage/writepage results in clear code. The patch also adds
readpages and writepages interface functions to read/write list of
pages in one function call.

The code change handles the first mmap optimization mentioned on
https://github.com/behlendorf/zfs/issues/225

Signed-off-by: Prasad Joshi <pjoshi@stec-inc.com>
Signed-off-by: Brian Behlendorf <behlendorf@llnl.gov>
Issue #255
include/sys/zfs_vnops.h
include/sys/zpl.h
module/zfs/zfs_vnops.c
module/zfs/zpl_file.c