Re: Assertion failure in do_get_write_access() at fs/jbd/transaction.c:746

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, 2002-12-06 at 23:30, Stephen C. Tweedie wrote:
> So most of the paths really should be safe: when a file initially
> becomes that large, we should be accounting for an sb write already. 
> But in the case where the sb state is incorrect when we get a
> mark_inode_dirty(), we need to be able to correct it there, so I think
> it's actually more correct simply to reserve the extra block just inside
> ext3_dirty_inode()'s transaction.

As simple as


--- linux-2.4.20-ext3merge/fs/ext3/inode.c.=K0029=.orig	2002-12-06 23:29:24.000000000 +0000
+++ linux-2.4.20-ext3merge/fs/ext3/inode.c	2002-12-06 23:29:24.000000000 +0000
@@ -2581,7 +2581,7 @@
 	handle_t *handle;
 
 	lock_kernel();
-	handle = ext3_journal_start(inode, 1);
+	handle = ext3_journal_start(inode, 2);
 	if (IS_ERR(handle))
 		goto out;
 	

in fact.  
	http://people.redhat.com/sct/patches/ext3-2.4/dev-20021211/02-fixes-sct/4201-sb-update.patch

Cheers,
 Stephen



_______________________________________________

Ext3-users@redhat.com
https://listman.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux