This patch is to add forgotten metadata journaling for a case when we free blocks after tail conversion failures. Found and fixed by Chris Mason --- linux-2.5.8-pre2/fs/reiserfs/inode.c.orig Mon Apr 8 14:09:34 2002 +++ linux-2.5.8-pre2/fs/reiserfs/inode.c Mon Apr 8 14:09:57 2002 @@ -745,8 +745,12 @@ if (retval) { if ( retval != -ENOSPC ) printk("clm-6004: convert tail failed inode %lu, error %d\n", inode->i_ino, retval) ; - if (allocated_block_nr) + if (allocated_block_nr) { + /* the bitmap, the super, and the stat data == 3 */ + journal_begin(&th, inode->i_sb, 3) ; reiserfs_free_block (&th, allocated_block_nr); + transaction_started = 1 ; + } goto failure ; } goto research ;