More arla panic and oops info on linux 2.2.1

Magnus Ahltorp map at stacken.kth.se
Sat Feb 6 01:52:25 CET 1999


Try this patch. It should at least keep the system from oops:ing. I
have not investigated further why the cache file handle is unassigned.

Index: xfs_inodeops.c
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/linux/xfs_inodeops.c,v
retrieving revision 1.77
diff -u -r1.77 xfs_inodeops.c
--- xfs_inodeops.c	1999/01/30 16:38:34	1.77
+++ xfs_inodeops.c	1999/02/06 00:40:16
@@ -947,6 +947,10 @@
     if (error)
 	return error;
 
+    if (DATA_FROM_VNODE(xfs_inode) == NULL) {
+	printk(KERN_EMERG "XFS Panic: readpage on NULL cache file\n");
+	return -EINVAL;
+    }
     cache_inode = DENTRY_TO_INODE(DATA_FROM_VNODE(xfs_inode));
 
     cache_dentry = d_alloc(NULL, &(const struct qstr) { "xfs cache file", 14, 0});
Index: xfs_vfsops.c
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/linux/xfs_vfsops.c,v
retrieving revision 1.39
diff -u -r1.39 xfs_vfsops.c
--- xfs_vfsops.c	1999/01/15 14:19:21	1.39
+++ xfs_vfsops.c	1999/02/06 00:40:16
@@ -346,7 +346,7 @@
         XFS_TOKEN_CLEAR(xn, XFS_ATTR_VALID, XFS_ATTR_MASK);
     }
     
-    return -error;
+    return error;
 }
 
 #ifndef LINUX2_1






More information about the Arla-drinkers mailing list