Skip to contentSkip to conversation

jbd2: add missing tracepoint for reserved handle

PATCH Applied Xiaoguang Wang 2 participants 2 messages Aug 15, 2019 – Aug 25, 2019 Journalling layer for block devices (JBD2)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 fs/jbd2/transaction.c | 3 +++
 1 file changed, 3 insertions(+)
fs/jbd2/transaction.c +3 -0
index 990e7b5062e7..afc06daee5bb 100644
@@ -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);
Signature · 1 line
2.17.2