SOURCES: shfs-inode_oops.patch (NEW) - fix kernel oops: kernel: ...

pluto pluto at pld-linux.org
Sat Dec 10 14:01:19 CET 2005


Author: pluto                        Date: Sat Dec 10 13:00:52 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix kernel oops:
  kernel: kernel BUG at fs/inode.c:252!
  kernel: invalid operand: 0000 [#1]

---- Files affected:
SOURCES:
   shfs-inode_oops.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/shfs-inode_oops.patch
diff -u /dev/null SOURCES/shfs-inode_oops.patch:1.1
--- /dev/null	Sat Dec 10 14:00:52 2005
+++ SOURCES/shfs-inode_oops.patch	Sat Dec 10 14:00:25 2005
@@ -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);
+ }
+ 
================================================================



More information about the pld-cvs-commit mailing list