[BACK]Return to xfs_file.c CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / mainline-patches / linux-2.6

File: [Development] / linux-2.6-xfs / mainline-patches / linux-2.6 / xfs_file.c (download)

Revision 1.1, Tue May 22 15:54:25 2007 UTC (10 years, 5 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD

Merge of 2.6.x-xfs-melb:linux:28651a by kenmcd.

  Note the differences of HAVE_DMAPI with mainline.

Somehow the CONFIG_XFS_DMAPI made it into mainline even though I don't
think it really should be there:)
Later Vlad updated to use HAVE_DMAPI which would test for CONFIG_XFS_DMAPI
and CONFIG_XFS_DMAPI_MODULE and this didn't go to mainline.

--- /home/tes/isms/linux-2.6.git/fs/xfs/linux-2.6/xfs_file.c	2007-05-08 11:28:08.238680490 +1000
+++ /home/tes/isms/xfs-linux/linux-2.6/xfs_file.c	2007-02-06 14:44:32.000000000 +1100
@@ -42,7 +42,7 @@
 #include <linux/smp_lock.h>
 
 static struct vm_operations_struct xfs_file_vm_ops;
-#ifdef CONFIG_XFS_DMAPI
+#ifdef HAVE_DMAPI
 static struct vm_operations_struct xfs_dmapi_file_vm_ops;
 #endif
 
@@ -244,7 +244,7 @@ xfs_file_fsync(
 	return -bhv_vop_fsync(vp, flags, NULL, (xfs_off_t)0, (xfs_off_t)-1);
 }
 
-#ifdef CONFIG_XFS_DMAPI
+#ifdef HAVE_DMAPI
 STATIC struct page *
 xfs_vm_nopage(
 	struct vm_area_struct	*area,
@@ -259,7 +259,7 @@ xfs_vm_nopage(
 		return NULL;
 	return filemap_nopage(area, address, type);
 }
-#endif /* CONFIG_XFS_DMAPI */
+#endif /* HAVE_DMAPI */
 
 STATIC int
 xfs_file_readdir(
@@ -344,10 +344,10 @@ xfs_file_mmap(
 {
 	vma->vm_ops = &xfs_file_vm_ops;
 
-#ifdef CONFIG_XFS_DMAPI
+#ifdef HAVE_DMAPI
 	if (vn_from_inode(filp->f_path.dentry->d_inode)->v_vfsp->vfs_flag & VFS_DMI)
 		vma->vm_ops = &xfs_dmapi_file_vm_ops;
-#endif /* CONFIG_XFS_DMAPI */
+#endif /* HAVE_DMAPI */
 
 	file_accessed(filp);
 	return 0;
@@ -397,7 +397,7 @@ xfs_file_ioctl_invis(
 	return error;
 }
 
-#ifdef CONFIG_XFS_DMAPI
+#ifdef HAVE_DMAPI
 #ifdef HAVE_VMOP_MPROTECT
 STATIC int
 xfs_vm_mprotect(
@@ -418,7 +418,7 @@ xfs_vm_mprotect(
 	return error;
 }
 #endif /* HAVE_VMOP_MPROTECT */
-#endif /* CONFIG_XFS_DMAPI */
+#endif /* HAVE_DMAPI */
 
 #ifdef HAVE_FOP_OPEN_EXEC
 /* If the user is attempting to execute a file that is offline then
@@ -505,7 +505,7 @@ static struct vm_operations_struct xfs_f
 	.populate	= filemap_populate,
 };
 
-#ifdef CONFIG_XFS_DMAPI
+#ifdef HAVE_DMAPI
 static struct vm_operations_struct xfs_dmapi_file_vm_ops = {
 	.nopage		= xfs_vm_nopage,
 	.populate	= filemap_populate,
@@ -513,4 +513,4 @@ static struct vm_operations_struct xfs_d
 	.mprotect	= xfs_vm_mprotect,
 #endif
 };
-#endif /* CONFIG_XFS_DMAPI */
+#endif /* HAVE_DMAPI */