From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Carlos Maiolino <cem@kernel.org>, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 9/9] xfs: remove the xlog_in_core_t typedef
Date: Tue, 14 Oct 2025 15:12:29 -0700 [thread overview]
Message-ID: <20251014221229.GO6188@frogsfrogsfrogs> (raw)
In-Reply-To: <20251013024228.4109032-10-hch@lst.de>
On Mon, Oct 13, 2025 at 11:42:13AM +0900, Christoph Hellwig wrote:
> Switch the few remaining users to use the underlying struct directly.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
Gooooody!
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> ---
> fs/xfs/xfs_log.c | 18 +++++++++---------
> fs/xfs/xfs_log_priv.h | 6 +++---
> 2 files changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
> index 47a8e74c8c5c..a311385b23d8 100644
> --- a/fs/xfs/xfs_log.c
> +++ b/fs/xfs/xfs_log.c
> @@ -1368,8 +1368,8 @@ xlog_alloc_log(
> int num_bblks)
> {
> struct xlog *log;
> - xlog_in_core_t **iclogp;
> - xlog_in_core_t *iclog, *prev_iclog=NULL;
> + struct xlog_in_core **iclogp;
> + struct xlog_in_core *iclog, *prev_iclog = NULL;
> int i;
> int error = -ENOMEM;
> uint log2_size = 0;
> @@ -1813,10 +1813,10 @@ xlog_sync(
> */
> STATIC void
> xlog_dealloc_log(
> - struct xlog *log)
> + struct xlog *log)
> {
> - xlog_in_core_t *iclog, *next_iclog;
> - int i;
> + struct xlog_in_core *iclog, *next_iclog;
> + int i;
>
> /*
> * Destroy the CIL after waiting for iclog IO completion because an
> @@ -3293,7 +3293,7 @@ xlog_verify_iclog(
> int count)
> {
> struct xlog_rec_header *rhead = iclog->ic_header;
> - xlog_in_core_t *icptr;
> + struct xlog_in_core *icptr;
> void *base_ptr, *ptr;
> ptrdiff_t field_offset;
> uint8_t clientid;
> @@ -3481,11 +3481,10 @@ xlog_force_shutdown(
>
> STATIC int
> xlog_iclogs_empty(
> - struct xlog *log)
> + struct xlog *log)
> {
> - xlog_in_core_t *iclog;
> + struct xlog_in_core *iclog = log->l_iclog;
>
> - iclog = log->l_iclog;
> do {
> /* endianness does not matter here, zero is zero in
> * any language.
> @@ -3494,6 +3493,7 @@ xlog_iclogs_empty(
> return 0;
> iclog = iclog->ic_next;
> } while (iclog != log->l_iclog);
> +
> return 1;
> }
>
> diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h
> index 17733ba7f251..0fe59f0525aa 100644
> --- a/fs/xfs/xfs_log_priv.h
> +++ b/fs/xfs/xfs_log_priv.h
> @@ -181,7 +181,7 @@ struct xlog_ticket {
> * We'll put all the read-only and l_icloglock fields in the first cacheline,
> * and move everything else out to subsequent cachelines.
> */
> -typedef struct xlog_in_core {
> +struct xlog_in_core {
> wait_queue_head_t ic_force_wait;
> wait_queue_head_t ic_write_wait;
> struct xlog_in_core *ic_next;
> @@ -204,7 +204,7 @@ typedef struct xlog_in_core {
> struct work_struct ic_end_io_work;
> struct bio ic_bio;
> struct bio_vec ic_bvec[];
> -} xlog_in_core_t;
> +};
>
> /*
> * The CIL context is used to aggregate per-transaction details as well be
> @@ -418,7 +418,7 @@ struct xlog {
> /* waiting for iclog flush */
> int l_covered_state;/* state of "covering disk
> * log entries" */
> - xlog_in_core_t *l_iclog; /* head log queue */
> + struct xlog_in_core *l_iclog; /* head log queue */
> spinlock_t l_icloglock; /* grab to change iclog state */
> int l_curr_cycle; /* Cycle number of log writes */
> int l_prev_cycle; /* Cycle number before last
> --
> 2.47.3
>
>
next prev parent reply other threads:[~2025-10-14 22:12 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 2:42 kill xlog_in_core_2_t v2 Christoph Hellwig
2025-10-13 2:42 ` [PATCH 1/9] xfs: add a XLOG_CYCLE_DATA_SIZE constant Christoph Hellwig
2025-10-14 21:16 ` Darrick J. Wong
2025-10-13 2:42 ` [PATCH 2/9] xfs: add a on-disk log header cycle array accessor Christoph Hellwig
2025-10-14 21:27 ` Darrick J. Wong
2025-10-15 4:32 ` Christoph Hellwig
2025-10-15 20:25 ` Darrick J. Wong
2025-10-13 2:42 ` [PATCH 3/9] xfs: don't use xlog_in_core_2_t in struct xlog_in_core Christoph Hellwig
2025-10-14 21:47 ` Darrick J. Wong
2025-10-15 4:34 ` Christoph Hellwig
2025-10-15 20:26 ` Darrick J. Wong
2025-10-13 2:42 ` [PATCH 4/9] xfs: cleanup xlog_alloc_log a bit Christoph Hellwig
2025-10-14 21:48 ` Darrick J. Wong
2025-10-13 2:42 ` [PATCH 5/9] xfs: remove a very outdated comment from xlog_alloc_log Christoph Hellwig
2025-10-14 21:52 ` Darrick J. Wong
2025-10-15 4:37 ` Christoph Hellwig
2025-10-13 2:42 ` [PATCH 6/9] xfs: remove xlog_in_core_2_t Christoph Hellwig
2025-10-14 22:07 ` Darrick J. Wong
2025-10-15 4:41 ` Christoph Hellwig
2025-10-15 20:27 ` Darrick J. Wong
2025-10-13 2:42 ` [PATCH 7/9] xfs: remove the xlog_rec_header_t typedef Christoph Hellwig
2025-10-14 22:08 ` Darrick J. Wong
2025-10-13 2:42 ` [PATCH 8/9] xfs: remove l_iclog_heads Christoph Hellwig
2025-10-14 22:12 ` Darrick J. Wong
2025-10-13 2:42 ` [PATCH 9/9] xfs: remove the xlog_in_core_t typedef Christoph Hellwig
2025-10-14 22:12 ` Darrick J. Wong [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-27 7:05 kill xlog_in_core_2_t v3 Christoph Hellwig
2025-10-27 7:05 ` [PATCH 9/9] xfs: remove the xlog_in_core_t typedef Christoph Hellwig
2025-10-31 14:16 ` Carlos Maiolino
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=20251014221229.GO6188@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=cem@kernel.org \
--cc=hch@lst.de \
--cc=linux-xfs@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).