summaryrefslogtreecommitdiffstats
path: root/zfs_config.h.in
diff options
context:
space:
mode:
authorPrasad Joshi <[email protected]>2011-06-25 13:30:29 +0100
committerBrian Behlendorf <[email protected]>2011-06-27 09:59:19 -0700
commitb312979252c5b566d2f59febcda67f309637e18c (patch)
tree7a9950357582ef20835f99fb565da1cef12fd135 /zfs_config.h.in
parent560bcf9d14a63e2cef4dd49d61399c8a865c1348 (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 'zfs_config.h.in')
-rw-r--r--zfs_config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/zfs_config.h.in b/zfs_config.h.in
index d9a4851c5..0d3028f3b 100644
--- a/zfs_config.h.in
+++ b/zfs_config.h.in
@@ -153,6 +153,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
+/* truncate_setsize() is available */
+#undef HAVE_TRUNCATE_SETSIZE
+
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H