aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/jbd2.h
diff options
context:
space:
mode:
authorYongqiang Yang <xiaoqiangnk@gmail.com>2012-02-20 17:53:02 -0500
committerTheodore Ts'o <tytso@mit.edu>2012-02-20 17:53:02 -0500
commit0c2022eccb01630c037f2024531e9ff1afbe1564 (patch)
tree704d54db298e64a84fd60330fd7985d27117d98c /include/linux/jbd2.h
parent18aadd47f88464928b5ce57791c2e8f9f2aaece0 (diff)
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 'include/linux/jbd2.h')
-rw-r--r--include/linux/jbd2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h
index 5557baefed60..46eef77e6ab8 100644
--- a/include/linux/jbd2.h
+++ b/include/linux/jbd2.h
@@ -1020,6 +1020,11 @@ jbd2_journal_write_metadata_buffer(transaction_t *transaction,
1020/* Transaction locking */ 1020/* Transaction locking */
1021extern void __wait_on_journal (journal_t *); 1021extern void __wait_on_journal (journal_t *);
1022 1022
1023/* Transaction cache support */
1024extern void jbd2_journal_destroy_transaction_cache(void);
1025extern int jbd2_journal_init_transaction_cache(void);
1026extern void jbd2_journal_free_transaction(transaction_t *);
1027
1023/* 1028/*
1024 * Journal locking. 1029 * Journal locking.
1025 * 1030 *