diff options
author | Prasad Joshi <[email protected]> | 2011-06-25 13:30:29 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-06-27 09:59:19 -0700 |
commit | b312979252c5b566d2f59febcda67f309637e18c (patch) | |
tree | 7a9950357582ef20835f99fb565da1cef12fd135 /dracut | |
parent | 560bcf9d14a63e2cef4dd49d61399c8a865c1348 (diff) |
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 <[email protected]>
Closes #255
Diffstat (limited to 'dracut')
-rw-r--r-- | dracut/90zfs/Makefile.in | 1 | ||||
-rw-r--r-- | dracut/Makefile.in | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/dracut/90zfs/Makefile.in b/dracut/90zfs/Makefile.in index 212904e43..30dd963c7 100644 --- a/dracut/90zfs/Makefile.in +++ b/dracut/90zfs/Makefile.in @@ -66,6 +66,7 @@ am__aclocal_m4_deps = \ $(top_srcdir)/config/kernel-open-bdev-exclusive.m4 \ $(top_srcdir)/config/kernel-rq-for-each_segment.m4 \ $(top_srcdir)/config/kernel-rq-is_sync.m4 \ + $(top_srcdir)/config/kernel-truncate-setsize.m4 \ $(top_srcdir)/config/kernel-xattr-handler.m4 \ $(top_srcdir)/config/kernel.m4 \ $(top_srcdir)/config/user-arch.m4 \ diff --git a/dracut/Makefile.in b/dracut/Makefile.in index 5cd070757..b8b2310fa 100644 --- a/dracut/Makefile.in +++ b/dracut/Makefile.in @@ -64,6 +64,7 @@ am__aclocal_m4_deps = \ $(top_srcdir)/config/kernel-open-bdev-exclusive.m4 \ $(top_srcdir)/config/kernel-rq-for-each_segment.m4 \ $(top_srcdir)/config/kernel-rq-is_sync.m4 \ + $(top_srcdir)/config/kernel-truncate-setsize.m4 \ $(top_srcdir)/config/kernel-xattr-handler.m4 \ $(top_srcdir)/config/kernel.m4 \ $(top_srcdir)/config/user-arch.m4 \ |