--------------------- PatchSet 863 Date: 2002/06/17 15:07:08 Author: sct Log: Fix for a rare problem seen under stress in data=journal mode: if we have to restart a truncate transaction while traversing the inode's direct blocks, we need to deal with bh==NULL in ext3_clear_blocks. Members: fs/ext3/inode.c:1.64.2.22->1.64.2.23 [ext3-1_0-branch] --- linux-ext3-2.4merge/fs/ext3/inode.c.=K0015=.orig Sat Aug 17 20:23:20 2002 +++ linux-ext3-2.4merge/fs/ext3/inode.c Mon Aug 19 18:48:50 2002 @@ -1591,8 +1591,10 @@ } ext3_mark_inode_dirty(handle, inode); ext3_journal_test_restart(handle, inode); - BUFFER_TRACE(bh, "get_write_access"); - ext3_journal_get_write_access(handle, bh); + if (bh) { + BUFFER_TRACE(bh, "retaking write access"); + ext3_journal_get_write_access(handle, bh); + } } /*