Skip to content

Commit

Permalink
[PATCH] Make reiserfs BUG on too big transaction
Browse files Browse the repository at this point in the history
Make reiserfs BUG() when somebody tries to start a larger transaction than
it's allowed (currently the code just silently deadlocks).

Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Chris Mason <mason@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Jun 24, 2005
1 parent 7282bee commit bdd5b29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/reiserfs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2631,6 +2631,8 @@ static int do_journal_begin_r(struct reiserfs_transaction_handle *th, struct sup
int retval;

reiserfs_check_lock_depth(p_s_sb, "journal_begin") ;
if (nblocks > journal->j_trans_max)
BUG();

PROC_INFO_INC( p_s_sb, journal.journal_being );
/* set here for journal_join */
Expand Down

0 comments on commit bdd5b29

Please sign in to comment.