All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] provide filemap_fdatawrite wrapper for 2.4
@ 2004-08-13  5:42 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-08-13  5:42 UTC (permalink / raw)
  To: ocfs2-devel


Index: src/ocfs_compat.h
===================================================================
--- src/ocfs_compat.h	(revision 1352)
+++ src/ocfs_compat.h	(working copy)
@@ -121,6 +121,9 @@
 	return error;
 }
 
+#define filemap_fdatawrite(mapping) \
+	filemap_fdatasync(mapping);
+
 #ifdef HAVE_NPTL
 static inline void dequeue_signal_lock(struct task_struct *task,
 				       sigset_t *blocked, siginfo_t *info)
Index: src/file.c
===================================================================
--- src/file.c	(revision 1352)
+++ src/file.c	(working copy)
@@ -80,11 +81,7 @@
 
 int ocfs_sync_inode(struct inode *inode)
 {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
 	filemap_fdatawrite(inode->i_mapping);
-#else
-	filemap_fdatasync(inode->i_mapping);
-#endif
 	return sync_mapping_buffers(inode->i_mapping);
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-13  5:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-13  5:42 [Ocfs2-devel] [PATCH] provide filemap_fdatawrite wrapper for 2.4 Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.