[Ocfs2-commits] manish commits r2407 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Jun 17 19:06:25 CDT 2005


Author: manish
Signed-off-by: jlbec
Date: 2005-06-17 19:06:24 -0500 (Fri, 17 Jun 2005)
New Revision: 2407

Modified:
   trunk/fs/ocfs2/dlmglue.c
Log:
All kernels we support have the unmap_mapping_range() API

Signed-off-by: jlbec


Modified: trunk/fs/ocfs2/dlmglue.c
===================================================================
--- trunk/fs/ocfs2/dlmglue.c	2005-06-18 00:05:16 UTC (rev 2406)
+++ trunk/fs/ocfs2/dlmglue.c	2005-06-18 00:06:24 UTC (rev 2407)
@@ -2413,9 +2413,7 @@
 	sync_mapping_buffers(mapping);
 	if (blocking == LKM_EXMODE) {
 		truncate_inode_pages(mapping, 0);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6)
 		unmap_mapping_range(mapping, 0, 0, 0);
-#endif
 	} else {
 		/* We only need to wait on the I/O if we're not also
 		 * truncating pages because truncate_inode_pages waits



More information about the Ocfs2-commits mailing list