summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-2.6.35
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-07-17 11:56:03 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2010-07-17 11:56:03 +0000
commit2e05035bb1cefd76d3739ff7aff126a2698bc077 (patch)
tree59cfb9e31899ea93ef4e7f7ea8f2a0a8e437e5ed /target/linux/generic/patches-2.6.35
parent57d2e57b02a009593a80ffa6af02841acc2541b6 (diff)
downloadmtk-20170518-2e05035bb1cefd76d3739ff7aff126a2698bc077.zip
mtk-20170518-2e05035bb1cefd76d3739ff7aff126a2698bc077.tar.gz
mtk-20170518-2e05035bb1cefd76d3739ff7aff126a2698bc077.tar.bz2
kernel: the interface fsync changed a little
SVN-Revision: 22244
Diffstat (limited to 'target/linux/generic/patches-2.6.35')
-rw-r--r--target/linux/generic/patches-2.6.35/217-mini_fo_2.6.35.patch33
1 files changed, 29 insertions, 4 deletions
diff --git a/target/linux/generic/patches-2.6.35/217-mini_fo_2.6.35.patch b/target/linux/generic/patches-2.6.35/217-mini_fo_2.6.35.patch
index ef69729..61f54f0 100644
--- a/target/linux/generic/patches-2.6.35/217-mini_fo_2.6.35.patch
+++ b/target/linux/generic/patches-2.6.35/217-mini_fo_2.6.35.patch
@@ -1,20 +1,45 @@
--- a/fs/mini_fo/file.c
+++ b/fs/mini_fo/file.c
-@@ -616,7 +616,7 @@ mini_fo_fsync(file_t *file, dentry_t *de
+@@ -599,7 +599,7 @@ mini_fo_release(inode_t *inode, file_t *
+ }
+
+ STATIC int
+-mini_fo_fsync(file_t *file, dentry_t *dentry, int datasync)
++mini_fo_fsync(file_t *file, int datasync)
+ {
+ int err1 = 0;
+ int err2 = 0;
+@@ -609,14 +609,14 @@ mini_fo_fsync(file_t *file, dentry_t *de
+ check_mini_fo_file(file);
+
+ if ((hidden_file = ftohf(file)) != NULL) {
+- hidden_dentry = dtohd(dentry);
++ hidden_dentry = dtohd(file->f_path.dentry);
+ if (hidden_file->f_op && hidden_file->f_op->fsync) {
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex);
#else
down(&hidden_dentry->d_inode->i_sem);
#endif
- err1 = hidden_file->f_op->fsync(hidden_file, hidden_dentry, datasync);
-+ err1 = hidden_file->f_op->fsync(hidden_file, hidden_dentry);
++ err1 = hidden_file->f_op->fsync(hidden_file, datasync);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
mutex_unlock(&hidden_dentry->d_inode->i_mutex);
#else
-@@ -633,7 +633,7 @@ mini_fo_fsync(file_t *file, dentry_t *de
+@@ -626,14 +626,14 @@ mini_fo_fsync(file_t *file, dentry_t *de
+ }
+
+ if ((hidden_file = ftohf2(file)) != NULL) {
+- hidden_dentry = dtohd2(dentry);
++ hidden_dentry = dtohd2(file->f_path.dentry);
+ if (hidden_file->f_op && hidden_file->f_op->fsync) {
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex);
#else
down(&hidden_dentry->d_inode->i_sem);
#endif
- err2 = hidden_file->f_op->fsync(hidden_file, hidden_dentry, datasync);
-+ err2 = hidden_file->f_op->fsync(hidden_file, hidden_dentry);
++ err2 = hidden_file->f_op->fsync(hidden_file, datasync);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
mutex_unlock(&hidden_dentry->d_inode->i_mutex);
#else