From: Michael Jeanson Date: Mon, 15 Aug 2022 21:21:20 +0000 (-0400) Subject: fix: fs/jbd2: Fix the documentation of the jbd2_write_superblock() callers (v6.0) X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=d2771276cc40e3540d82e50909f57199cdd0773b fix: fs/jbd2: Fix the documentation of the jbd2_write_superblock() callers (v6.0) See upstream commit : commit 6669797b0dd41ced457760b6e1014fdda8ce19ce Author: Bart Van Assche Date: Thu Jul 14 11:07:22 2022 -0700 Commit 2a222ca992c3 ("fs: have submit_bh users pass in op and flags separately") renamed the jbd2_write_superblock() 'write_op' argument into 'write_flags'. Propagate this change to the jbd2_write_superblock() callers. Additionally, change the type of 'write_flags' into blk_opf_t. Change-Id: I65b8af95b3d07438763dd94f409c197e3b400733 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/instrumentation/events/jbd2.h b/include/instrumentation/events/jbd2.h index 8ead71ae..a356a80c 100644 --- a/include/instrumentation/events/jbd2.h +++ b/include/instrumentation/events/jbd2.h @@ -157,7 +157,46 @@ LTTNG_TRACEPOINT_EVENT(jbd2_cleanup_journal_tail, ) ) -#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,4,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,0,0)) + +#ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM +LTTNG_TRACEPOINT_ENUM(req_op, + TP_ENUM_VALUES( + ctf_enum_value("REQ_OP_READ", REQ_OP_READ) + ctf_enum_value("REQ_OP_WRITE", REQ_OP_WRITE) + ctf_enum_value("REQ_OP_FLUSH", REQ_OP_FLUSH) + ctf_enum_value("REQ_OP_DISCARD", REQ_OP_DISCARD) + ctf_enum_value("REQ_OP_SECURE_ERASE", REQ_OP_SECURE_ERASE) + ctf_enum_value("REQ_OP_WRITE_ZEROES", REQ_OP_WRITE_ZEROES) + ctf_enum_value("REQ_OP_ZONE_OPEN", REQ_OP_ZONE_OPEN) + ctf_enum_value("REQ_OP_ZONE_CLOSE", REQ_OP_ZONE_CLOSE) + ctf_enum_value("REQ_OP_ZONE_FINISH", REQ_OP_ZONE_FINISH) + ctf_enum_value("REQ_OP_ZONE_APPEND", REQ_OP_ZONE_APPEND) + ctf_enum_value("REQ_OP_ZONE_RESET", REQ_OP_ZONE_RESET) + ctf_enum_value("REQ_OP_ZONE_RESET_ALL", REQ_OP_ZONE_RESET_ALL) + ctf_enum_value("REQ_OP_DRV_IN", REQ_OP_DRV_IN) + ctf_enum_value("REQ_OP_DRV_OUT", REQ_OP_DRV_OUT) + ctf_enum_value("REQ_OP_LAST", REQ_OP_LAST) + ) +) +#endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */ + +LTTNG_TRACEPOINT_EVENT(jbd2_write_superblock, + + TP_PROTO(journal_t *journal, blk_opf_t write_flags), + + TP_ARGS(journal, write_flags), + + TP_FIELDS( + ctf_integer(dev_t, dev, journal->j_fs_dev->bd_dev) +#ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM + ctf_enum(req_op, blk_opf_t, write_flags, write_flags) +#else + ctf_integer_hex(blk_opf_t, write_flags, write_flags) +#endif + ) +) +#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,4,0)) LTTNG_TRACEPOINT_EVENT(jbd2_write_superblock, TP_PROTO(journal_t *journal, int write_op),