From: TAKANO Mitsuhiro <takano32@gmail.com>
To: Theodore Ts'o <tytso@mit.edu>, Jan Kara <jack@suse.cz>
Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
TAKANO Mitsuhiro <takano32@gmail.com>
Subject: [PATCH] jbd2: Document the h_invalid flag of a handle
Date: Wed, 25 Nov 2026 18:40:27 +0000 [thread overview]
Message-ID: <20261125184027.2402549-1-takano32@gmail.com> (raw)
struct jbd2_journal_handle has an h_invalid bit: ext4 sets it when it
has given up on the handle, and __ext4_journal_stop() BUG_ONs when the
bit is clear. The kernel-doc comment lists the other three flags and
not this one, so kernel-doc reports the member twice:
Warning: include/linux/jbd2.h:523 struct member 'h_invalid' not
described in 'jbd2_journal_handle'
Add the line next to h_aborted.
Verification: kernel-doc -none include/linux/jbd2.h prints that warning
twice before the change and nothing after it.
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
include/linux/jbd2.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h
index e3886963ba00..361aa5dbe395 100644
--- a/include/linux/jbd2.h
+++ b/include/linux/jbd2.h
@@ -482,6 +482,7 @@ struct jbd2_revoke_table_s;
* @h_sync: Flag for sync-on-close.
* @h_reserved: Flag for handle for reserved credits.
* @h_aborted: Flag indicating fatal error on handle.
+ * @h_invalid: Flag indicating the handle must not be used any more.
* @h_type: For handle statistics.
* @h_line_no: For handle statistics.
* @h_start_jiffies: Handle Start time.
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
--
2.53.0
next reply other threads:[~2026-11-25 18:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 18:40 TAKANO Mitsuhiro [this message]
2026-11-25 18:45 ` [PATCH] jbd2: Document the h_invalid flag of a handle sashiko-bot
2026-11-25 20:06 ` Jan Kara
2026-11-25 22:18 ` TAKANO Mitsuhiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261125184027.2402549-1-takano32@gmail.com \
--to=takano32@gmail.com \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.