updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / shfs / inode-bugfix.diff
blob653dc7574f959d2d300e0b7a8684f15c318063af
1 diff -ruN shfs-0.35.orig/shfs/Linux-2.6/inode.c shfs-0.35/shfs/Linux-2.6/inode.c
2 --- shfs-0.35.orig/shfs/Linux-2.6/inode.c 2004-06-01 15:16:19.000000000 +0200
3 +++ shfs-0.35/shfs/Linux-2.6/inode.c 2006-04-05 16:59:55.000000000 +0200
4 @@ -14,6 +14,7 @@
5 #include <asm/uaccess.h>
6 #include <linux/file.h>
7 #include <linux/smp_lock.h>
8 +#include <linux/version.h>
10 #include "shfs_fs.h"
11 #include "shfs_fs_sb.h"
12 @@ -118,6 +119,9 @@
14 KMEM_FREE("inode", inode_cache, i);
15 out:
16 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13))
17 + truncate_inode_pages(&inode->i_data, 0);
18 +#endif
19 clear_inode(inode);