diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2011-01-21 17:52:22 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2011-01-21 17:52:22 +0000 |
commit | 2a7bdb2ef04b744e08d54e65e2cd76780a71aa34 (patch) | |
tree | 7b8643b5144db15c53536abf69dec2a49aa31bef /target/linux/generic/patches-2.6.38/217-mini_fo_2.6.35.patch | |
parent | 318102d24a60f6442052508c391aa984c5dbf97c (diff) | |
download | master-187ad058-2a7bdb2ef04b744e08d54e65e2cd76780a71aa34.tar.gz master-187ad058-2a7bdb2ef04b744e08d54e65e2cd76780a71aa34.tar.bz2 master-187ad058-2a7bdb2ef04b744e08d54e65e2cd76780a71aa34.zip |
[target/generic]: preliminary 2.6.38 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25057 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-2.6.38/217-mini_fo_2.6.35.patch')
-rw-r--r-- | target/linux/generic/patches-2.6.38/217-mini_fo_2.6.35.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.38/217-mini_fo_2.6.35.patch b/target/linux/generic/patches-2.6.38/217-mini_fo_2.6.35.patch new file mode 100644 index 0000000000..61f54f0359 --- /dev/null +++ b/target/linux/generic/patches-2.6.38/217-mini_fo_2.6.35.patch @@ -0,0 +1,45 @@ +--- a/fs/mini_fo/file.c ++++ b/fs/mini_fo/file.c +@@ -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, datasync); + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) + mutex_unlock(&hidden_dentry->d_inode->i_mutex); + #else +@@ -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, datasync); + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) + mutex_unlock(&hidden_dentry->d_inode->i_mutex); + #else |