HomeFreeBSD

Tear down and flush the mmap region

Description

Tear down and flush the mmap region

The inode eviction should unmap the pages associated with the inode.
These pages should also be flushed to disk to avoid the data loss.
Therefore, use truncate_setsize() in evict_inode() to release the
pagecache.

The API truncate_setsize() was added in 2.6.35 kernel. To ensure
compatibility with the old kernel, the patch defines its own
truncate_setsize function.

Signed-off-by: Prasad Joshi <pjoshi@stec-inc.com>
Closes #255

Details

Provenance
Prasad Joshi <pjoshi@stec-inc.com>Authored on Jun 25 2011, 12:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 27 2011, 4:59 PM
Parents
rG560bcf9d14a6: Multipath device manageability improvements
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb312979252c5: Tear down and flush the mmap region (authored by Prasad Joshi <pjoshi@stec-inc.com>).Jun 27 2011, 4:59 PM