> 
> Hello,
> 
> sometimes I have the following error messages in my syslog logfiles:
> 
> kernel: assert(cmp == 0)
> kernel: invalid operand: 0000
> kernel: CPU:    0
> kernel: EIP:    0010:[xtTruncate_pmap+140/1136]

Thanks for reporting this.  I was able to reproduce the problem and then the
bug was pretty easy to find.  I'm surprised I hadn't seen this one yet.

I believe this patch should fix it.

Thanks again,
Dave

Index: linux24/fs/jfs/jfs_xtree.c
===================================================================
RCS file: /usr/cvs/jfs/linux24/fs/jfs/jfs_xtree.c,v
retrieving revision 1.10
diff -u -r1.10 jfs_xtree.c
--- linux24/fs/jfs/jfs_xtree.c  2001/11/13 21:04:48     1.10
+++ linux24/fs/jfs/jfs_xtree.c  2001/11/19 20:07:44
@@ -3909,7 +3909,8 @@
        BT_CLR(&btstack);
 
        if (committed_size) {
-               rc = xtSearch(ip, committed_size - 1, &cmp, &btstack, 0);
+               xoff = (committed_size >> JFS_SBI(ip->i_sb)->l2bsize) - 1;
+               rc = xtSearch(ip, xoff, &cmp, &btstack, 0);
                if (rc)
                        return -rc;
                assert(cmp == 0);
_______________________________________________
Jfs-discussion mailing list
[EMAIL PROTECTED]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Reply via email to