summaryrefslogtreecommitdiff
path: root/fs/jbd2/transaction.c
diff options
context:
space:
mode:
authorXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>2019-08-24 23:10:17 -0400
committerTheodore Ts'o <tytso@mit.edu>2019-08-24 23:10:17 -0400
commit4c273352bb4583750bf511fe24fe410610414496 (patch)
tree7e36dbeea21617dc7debbc72d8a2598b08680cca /fs/jbd2/transaction.c
parentc1e8220bd316d8ae8e524df39534b8a412a45d5e (diff)
downloadlwn-4c273352bb4583750bf511fe24fe410610414496.tar.gz
lwn-4c273352bb4583750bf511fe24fe410610414496.zip
jbd2: add missing tracepoint for reserved handle
This issue was found when I use ebpf to trace every jbd2 handle's running info in dioread_nolock case. Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/transaction.c')
-rw-r--r--fs/jbd2/transaction.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 990e7b5062e7..afc06daee5bb 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -569,6 +569,9 @@ int jbd2_journal_start_reserved(handle_t *handle, unsigned int type,
}
handle->h_type = type;
handle->h_line_no = line_no;
+ trace_jbd2_handle_start(journal->j_fs_dev->bd_dev,
+ handle->h_transaction->t_tid, type,
+ line_no, handle->h_buffer_credits);
return 0;
}
EXPORT_SYMBOL(jbd2_journal_start_reserved);