From: Christoph Hellwig <hch@lst.de>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] provide filemap_fdatawrite wrapper for 2.4
Date: Fri Aug 13 05:42:33 2004 [thread overview]
Message-ID: <20040813104229.GA5367@lst.de> (raw)
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);
}
reply other threads:[~2004-08-13 5:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040813104229.GA5367@lst.de \
--to=hch@lst.de \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.