On Monday 23 June 2003 05:34, Szonyi Calin wrote:
> Hi
>
> Accidentally  I filled up my jfs root partition.
> After that I had some crashes with jfs
> Below is the dmesg and the crash.

I think I found the problem.  The patch below should fix it.  I will try 
to reproduce the problem and verify that this patch works.

> I had to reboot in kernel 2.4 to be able to delete the files.

The funny thing is that the bug exists in 2.4 too.

> Also I found in logs a line with
> _mark_inode_dirty: this cannot happen

I don't know about this.

Thanks,
Shaggy

===== fs/jfs/jfs_dtree.c 1.21 vs edited =====
--- 1.21/fs/jfs/jfs_dtree.c     Thu Mar 13 09:14:08 2003
+++ edited/fs/jfs/jfs_dtree.c   Mon Jun 23 15:21:03 2003
@@ -2908,7 +2908,7 @@
                        d->index = cpu_to_le32(add_index(tid, inode, bn, i));
                        if (dtlck->index >= dtlck->maxcnt)
                                dtlck = (struct dt_lock *) txLinelock(dtlck);
-                       lv = dtlck->lv;
+                       lv = &dtlck->lv[dtlck->index];
                        lv->offset = stbl[i];
                        lv->length = 1;
                        dtlck->index++;

_______________________________________________
Jfs-discussion mailing list
[EMAIL PROTECTED]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Reply via email to