Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] reiserfs: reiserfs fix journal accounting in journal_transaction_should_end

reiserfs: journal_transaction_should_end should increase the count of
blocks allocated so the transaction subsystem can keep new writers from
creating a transaction that is too large.

Signed-off-by: Chris Mason <mason@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Chris Mason and committed by
Linus Torvalds
6ae1ea44 3d4492f8

+3
+3
fs/reiserfs/journal.c
··· 2823 2823 journal->j_cnode_free < (journal->j_trans_max * 3)) { 2824 2824 return 1; 2825 2825 } 2826 + /* protected by the BKL here */ 2827 + journal->j_len_alloc += new_alloc; 2828 + th->t_blocks_allocated += new_alloc ; 2826 2829 return 0; 2827 2830 } 2828 2831