Forgot comitting patches
[openwrt-10.03/.git] / package / shfs / patches / 102-shfs_0.35_clean_inode_clear.patch
1 --- shfs-0.35.orig/shfs/Linux-2.6/inode.c.orig  2006-01-04 16:23:11.000000000 -0600
2 +++ shfs-0.35/shfs/Linux-2.6/inode.c    2006-01-04 16:24:45.000000000 -0600
3 @@ -8,6 +8,7 @@
4  #include <linux/modversions.h>
5  #endif
6  
7 +#include <linux/version.h>
8  #include <linux/kernel.h>
9  #include <linux/module.h>
10  #include <linux/init.h>
11 @@ -118,6 +119,9 @@
12         }
13         KMEM_FREE("inode", inode_cache, i);
14  out:
15 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13))
16 +   truncate_inode_pages(&inode->i_data, 0);
17 +#endif
18         clear_inode(inode);
19  }
20