HomeFreeBSD

MMAP Optimization

Description

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

Details

Provenance
Prasad Joshi <pjoshi@stec-inc.com>Authored on May 28 2011, 1:53 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 1 2011, 7:22 PM
Parents
rG2a005961a48e: Ensure all block devices are available
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGdde471ef5a07: MMAP Optimization (authored by Prasad Joshi <pjoshi@stec-inc.com>).Jul 1 2011, 7:22 PM