Skip to content

Commit a794c9a

Browse files
jankaratytso
authored andcommitted
jbd2: increase maximum transaction size
Originally, we were quite conservative in limiting maximum transaction size to a quarter of the journal because we were not accounting transaction descriptor and revoke blocks. These days we do properly account them and reserve space for them from the total transaction credits. Thus there's no need to be so conservative and we can increase the maximum transaction size to one third of the journal (even half should work fine in principle but the performance will likely suffer in that case). This also fixes failures to grow filesystems with tiny journals. Link: CA+hUFcuGs04JHZ_WzA1zGN57+ehL2qmHOt5a7RMpo+rv6Vyxtw@mail.gmail.com Signed-off-by: Jan Kara <[email protected]> Reviewed-by: Zhang Yi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 1cf5b02 commit a794c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/jbd2/journal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ static int journal_revoke_records_per_block(journal_t *journal)
14291429

14301430
static int jbd2_journal_get_max_txn_bufs(journal_t *journal)
14311431
{
1432-
return (journal->j_total_len - journal->j_fc_wbufsize) / 4;
1432+
return (journal->j_total_len - journal->j_fc_wbufsize) / 3;
14331433
}
14341434

14351435
/*

0 commit comments

Comments
 (0)