mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] jbd2: Document the h_invalid flag of a handle
@ 2026-11-25 18:40 TAKANO Mitsuhiro
  0 siblings, 0 replies; only message in thread
From: TAKANO Mitsuhiro @ 2026-11-25 18:40 UTC (permalink / raw)
  To: Theodore Ts'o, Jan Kara; +Cc: linux-ext4, linux-kernel, TAKANO Mitsuhiro

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-25 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 18:40 [PATCH] jbd2: Document the h_invalid flag of a handle TAKANO Mitsuhiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®