mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
jbd2: allocate transaction from separate slab cache
There is normally only a handful of these active at any one time, but putting them in a separate slab cache makes debugging memory corruption problems easier. Manish Katiyar also wanted this make it easier to test memory failure scenarios in the jbd2 layer. Cc: Manish Katiyar <mkatiyar@gmail.com> Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
18aadd47f8
commit
0c2022eccb
5 changed files with 43 additions and 5 deletions
|
@ -1048,7 +1048,7 @@ restart_loop:
|
|||
jbd_debug(1, "JBD2: commit %d complete, head %d\n",
|
||||
journal->j_commit_sequence, journal->j_tail_sequence);
|
||||
if (to_free)
|
||||
kfree(commit_transaction);
|
||||
jbd2_journal_free_transaction(commit_transaction);
|
||||
|
||||
wake_up(&journal->j_wait_done_commit);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue