]> git.pld-linux.org Git - packages/shfs.git/commitdiff
- fix kernel oops:
authorPaweł Sikora <pluto@pld-linux.org>
Sat, 10 Dec 2005 13:00:25 +0000 (13:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  kernel: kernel BUG at fs/inode.c:252!
  kernel: invalid operand: 0000 [#1]

Changed files:
    shfs-inode_oops.patch -> 1.1

shfs-inode_oops.patch [new file with mode: 0644]

diff --git a/shfs-inode_oops.patch b/shfs-inode_oops.patch
new file mode 100644 (file)
index 0000000..0fbbc9c
--- /dev/null
@@ -0,0 +1,20 @@
+--- shfs-0.35/shfs/Linux-2.6/inode.c.orig      2005-12-10 13:48:52.434364000 +0100
++++ shfs-0.35/shfs/Linux-2.6/inode.c   2005-12-10 13:49:08.864364000 +0100
+@@ -14,6 +14,7 @@
+ #include <asm/uaccess.h>
+ #include <linux/file.h>
+ #include <linux/smp_lock.h>
++#include <linux/version.h>
+ #include "shfs_fs.h"
+ #include "shfs_fs_sb.h"
+@@ -118,6 +119,9 @@ shfs_delete_inode(struct inode *inode)
+       }
+       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);
+ }
This page took 0.06417 seconds and 4 git commands to generate.