diff options
author | Yongqiang Yang <xiaoqiangnk@gmail.com> | 2012-02-20 17:53:02 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-02-20 17:53:02 -0500 |
commit | 0c2022eccb01630c037f2024531e9ff1afbe1564 (patch) | |
tree | 704d54db298e64a84fd60330fd7985d27117d98c /fs/jbd2/checkpoint.c | |
parent | 18aadd47f88464928b5ce57791c2e8f9f2aaece0 (diff) | |
download | linux-stable-0c2022eccb01630c037f2024531e9ff1afbe1564.tar.gz linux-stable-0c2022eccb01630c037f2024531e9ff1afbe1564.tar.bz2 linux-stable-0c2022eccb01630c037f2024531e9ff1afbe1564.zip |
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>
Diffstat (limited to 'fs/jbd2/checkpoint.c')
-rw-r--r-- | fs/jbd2/checkpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c index 453c9068b7d7..253e91890e71 100644 --- a/fs/jbd2/checkpoint.c +++ b/fs/jbd2/checkpoint.c @@ -722,7 +722,7 @@ int __jbd2_journal_remove_checkpoint(struct journal_head *jh) transaction->t_tid, stats); __jbd2_journal_drop_transaction(journal, transaction); - kfree(transaction); + jbd2_journal_free_transaction(transaction); /* Just in case anybody was waiting for more transactions to be checkpointed... */ |