diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-05-08 21:45:02 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-05-08 21:45:02 +0000 |
commit | 820555812e16ae9709c5d743d3250ab744c664e4 (patch) | |
tree | d12f1342572505893652c4c9ecbf6e05ba223d40 /package/shfs/patches/102-shfs_0.35_clean_inode_clear.patch | |
parent | 6a543b6c1e4ea681cb4900636f4ed85535bf199f (diff) | |
download | upstream-820555812e16ae9709c5d743d3250ab744c664e4.tar.gz upstream-820555812e16ae9709c5d743d3250ab744c664e4.tar.bz2 upstream-820555812e16ae9709c5d743d3250ab744c664e4.zip |
Forgot comitting patches
SVN-Revision: 7142
Diffstat (limited to 'package/shfs/patches/102-shfs_0.35_clean_inode_clear.patch')
-rw-r--r-- | package/shfs/patches/102-shfs_0.35_clean_inode_clear.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/shfs/patches/102-shfs_0.35_clean_inode_clear.patch b/package/shfs/patches/102-shfs_0.35_clean_inode_clear.patch new file mode 100644 index 0000000000..6ca6ec021d --- /dev/null +++ b/package/shfs/patches/102-shfs_0.35_clean_inode_clear.patch @@ -0,0 +1,20 @@ +--- shfs-0.35.orig/shfs/Linux-2.6/inode.c.orig 2006-01-04 16:23:11.000000000 -0600 ++++ shfs-0.35/shfs/Linux-2.6/inode.c 2006-01-04 16:24:45.000000000 -0600 +@@ -8,6 +8,7 @@ + #include <linux/modversions.h> + #endif + ++#include <linux/version.h> + #include <linux/kernel.h> + #include <linux/module.h> + #include <linux/init.h> +@@ -118,6 +119,9 @@ + } + KMEM_FREE("inode", inode_cache, i); + out: ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)) ++ truncate_inode_pages(&inode->i_data, 0); ++#endif + clear_inode(inode); + } + |