summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-09-13 07:22:39 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-09-13 07:22:39 +0000
commit7328f794bb6b6827a64fa3ef2a58472a07687c0c (patch)
treec6904ba87d5a9c0a78a601a53117bc1a8dc969d4 /target
parent6a5618187efc4ca55124d4bd836f81fb960c3dd2 (diff)
downloadmtk-20170518-7328f794bb6b6827a64fa3ef2a58472a07687c0c.zip
mtk-20170518-7328f794bb6b6827a64fa3ef2a58472a07687c0c.tar.gz
mtk-20170518-7328f794bb6b6827a64fa3ef2a58472a07687c0c.tar.bz2
linux/generic: update mini_fo evict_inode migration
SVN-Revision: 23046
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/patches-2.6.36/217-mini_fo_2.6.36_fixes.patch26
1 files changed, 17 insertions, 9 deletions
diff --git a/target/linux/generic/patches-2.6.36/217-mini_fo_2.6.36_fixes.patch b/target/linux/generic/patches-2.6.36/217-mini_fo_2.6.36_fixes.patch
index cae9547..f8d2ff6 100644
--- a/target/linux/generic/patches-2.6.36/217-mini_fo_2.6.36_fixes.patch
+++ b/target/linux/generic/patches-2.6.36/217-mini_fo_2.6.36_fixes.patch
@@ -1,22 +1,30 @@
--- a/fs/mini_fo/super.c
+++ b/fs/mini_fo/super.c
-@@ -296,11 +296,19 @@ struct super_operations mini_fo_sops =
+@@ -117,8 +117,11 @@ mini_fo_delete_inode(inode_t *inode)
+ print_entry_location();
+
+ fist_checkinode(inode, "mini_fo_delete_inode IN");
+- inode->i_size = 0; /* every f/s seems to do that */
+- clear_inode(inode);
++ // inode->i_size = 0; /* every f/s seems to do that */
++ end_writeback(inode);
++ dquot_drop(inode);
++ inode->i_blocks = 0;
++
+
+ print_exit_location();
+ }
+@@ -296,11 +299,11 @@ struct super_operations mini_fo_sops =
put_inode: mini_fo_put_inode,
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) */
#if defined(FIST_DEBUG) || defined(FIST_FILTER_SCA)
-+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,35)
+- delete_inode: mini_fo_delete_inode,
+ evict_inode: mini_fo_delete_inode,
-+#else
- delete_inode: mini_fo_delete_inode,
-+#endif
#endif /* defined(FIST_DEBUG) || defined(FIST_FILTER_SCA) */
put_super: mini_fo_put_super,
statfs: mini_fo_statfs,
remount_fs: mini_fo_remount_fs,
-+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,35)
+- clear_inode: mini_fo_clear_inode,
+ evict_inode: mini_fo_clear_inode,
-+#else
- clear_inode: mini_fo_clear_inode,
-+#endif
umount_begin: mini_fo_umount_begin,
};