diff options
author | Chris Mason <mason@suse.com> | 2006-02-01 06:06:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-01 11:53:26 -0500 |
commit | 6ae1ea447d21c4fecf5df8d0e1022461274fb4e8 (patch) | |
tree | 1827567dfb6532bad3f72f10e1bb023cdaee212f /fs/reiserfs/journal.c | |
parent | 3d4492f81dd7b486f1be0616a1ce7f73760f406e (diff) |
[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>
Diffstat (limited to 'fs/reiserfs/journal.c')
-rw-r--r-- | fs/reiserfs/journal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 47c9f432dea5..b7a179560ab4 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
@@ -2823,6 +2823,9 @@ int journal_transaction_should_end(struct reiserfs_transaction_handle *th, | |||
2823 | journal->j_cnode_free < (journal->j_trans_max * 3)) { | 2823 | journal->j_cnode_free < (journal->j_trans_max * 3)) { |
2824 | return 1; | 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 | return 0; | 2829 | return 0; |
2827 | } | 2830 | } |
2828 | 2831 | ||