All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "TAKANO Mitsuhiro" <takano32@gmail.com>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH] jbd2: Document the h_invalid flag of a handle
Date: Wed, 25 Nov 2026 18:45:30 +0000	[thread overview]
Message-ID: <sashiko-outbox-234011@kernel.org> (raw)
In-Reply-To: <20261125184027.2402549-1-takano32@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] jbd2: inaccurate kernel-doc and changelog description of
  h_invalid
--

commit d4f35738c639ebc73d068c9aba7408601b8ba4ea
Author: TAKANO Mitsuhiro <takano32@gmail.com>

jbd2: Document the h_invalid flag of a handle

This commit adds a kernel-doc entry for the h_invalid member of struct
jbd2_journal_handle to silence kernel-doc warnings.

> diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h
> index e3886963ba004..361aa5dbe3954 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.

[Severity: Low]
Are this kernel-doc description and the commit message accurate about
what h_invalid means?

ext4_get_nojournal() sets h_invalid = 1 when allocating a dummy handle in
no-journal mode so current->journal_info can hold saved_alloc_context and
track nested starts via h_ref without a JBD2 journal, and
ext4_handle_valid() checks !handle->h_invalid to test whether an active
handle uses a journal.

Also, __ext4_journal_stop() does not BUG_ON when h_invalid is clear; it
calls ext4_put_nojournal() when h_invalid is set and jbd2_journal_stop()
when h_invalid is clear (the BUG_ON(handle && !handle->h_invalid) check
is in ext4_get_nojournal()).

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125184027.2402549-1-takano32@gmail.com?part=1

  reply	other threads:[~2026-11-25 18:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 18:40 [PATCH] jbd2: Document the h_invalid flag of a handle TAKANO Mitsuhiro
2026-11-25 18:45 ` sashiko-bot [this message]
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=sashiko-outbox-234011@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=takano32@gmail.com \
    --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.