* [PATCH] ReiserFS 5 of 13, please apply
@ 2002-04-10 14:20 Hans Reiser
0 siblings, 0 replies; only message in thread
From: Hans Reiser @ 2002-04-10 14:20 UTC (permalink / raw)
To: torvalds, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: [PATCH] 2.5.8-pre3 patch 5 of 13 --]
[-- Type: message/rfc822, Size: 1509 bytes --]
From: Oleg Drokin <green@namesys.com>
To: reiser@namesys.com
Subject: [PATCH] 2.5.8-pre3 patch 5 of 13
Date: Wed, 10 Apr 2002 15:21:50 +0400
Message-ID: <20020410152150.A20881@namesys.com>
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 ;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-10 14:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-10 14:20 [PATCH] ReiserFS 5 of 13, please apply Hans Reiser
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.