patch-2.4.22 linux-2.4.22/fs/jfs/jfs_dtree.c

Next file: linux-2.4.22/fs/jfs/resize.c
Previous file: linux-2.4.22/fs/jffs2/write.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/fs/jfs/jfs_dtree.c linux-2.4.22/fs/jfs/jfs_dtree.c
@@ -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++;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)