From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-xfs@vger.kernel.org
Subject: Re: [PATCH 2/2] xfs: rename inode_list xlog_recover_reorder_trans
Date: Mon, 27 Apr 2020 11:05:02 -0700 [thread overview]
Message-ID: <20200427180502.GV6742@magnolia> (raw)
In-Reply-To: <20200427135229.1480993-3-hch@lst.de>
On Mon, Apr 27, 2020 at 03:52:29PM +0200, Christoph Hellwig wrote:
> This list contains pretty much everything that is not a buffer. The
> comment calls it item_list, which is a much better name than inode
> list, so switch the actual variable name to that as well.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
LGTM, who doesn't know where the "inode_list" name came from... :)
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
--D
> ---
> fs/xfs/xfs_log_recover.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
> index 750a81b941ea4..33cac61570abe 100644
> --- a/fs/xfs/xfs_log_recover.c
> +++ b/fs/xfs/xfs_log_recover.c
> @@ -1847,7 +1847,7 @@ xlog_recover_reorder_trans(
> LIST_HEAD(cancel_list);
> LIST_HEAD(buffer_list);
> LIST_HEAD(inode_buffer_list);
> - LIST_HEAD(inode_list);
> + LIST_HEAD(item_list);
>
> list_splice_init(&trans->r_itemq, &sort_list);
> list_for_each_entry_safe(item, n, &sort_list, ri_list) {
> @@ -1883,7 +1883,7 @@ xlog_recover_reorder_trans(
> case XFS_LI_BUD:
> trace_xfs_log_recover_item_reorder_tail(log,
> trans, item, pass);
> - list_move_tail(&item->ri_list, &inode_list);
> + list_move_tail(&item->ri_list, &item_list);
> break;
> default:
> xfs_warn(log->l_mp,
> @@ -1904,8 +1904,8 @@ xlog_recover_reorder_trans(
> ASSERT(list_empty(&sort_list));
> if (!list_empty(&buffer_list))
> list_splice(&buffer_list, &trans->r_itemq);
> - if (!list_empty(&inode_list))
> - list_splice_tail(&inode_list, &trans->r_itemq);
> + if (!list_empty(&item_list))
> + list_splice_tail(&item_list, &trans->r_itemq);
> if (!list_empty(&inode_buffer_list))
> list_splice_tail(&inode_buffer_list, &trans->r_itemq);
> if (!list_empty(&cancel_list))
> --
> 2.26.1
>
next prev parent reply other threads:[~2020-04-27 18:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-27 13:52 two small log recovery cleanups Christoph Hellwig
2020-04-27 13:52 ` [PATCH 1/2] xfs: refactor the buffer cancellation table helpers Christoph Hellwig
2020-04-27 18:12 ` Darrick J. Wong
2020-04-28 15:10 ` Brian Foster
2020-04-27 13:52 ` [PATCH 2/2] xfs: rename inode_list xlog_recover_reorder_trans Christoph Hellwig
2020-04-27 18:05 ` Darrick J. Wong [this message]
2020-04-28 15:10 ` Brian Foster
2020-04-27 19:33 ` [PATCH 3/2] xfs: factor out a xlog_buf_readahead helper Christoph Hellwig
2020-04-28 15:10 ` Brian Foster
2020-04-27 19:33 ` [PATCH 4/2] xfs: simplify xlog_recover_inode_ra_pass2 Christoph Hellwig
2020-04-28 15:11 ` Brian Foster
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=20200427180502.GV6742@magnolia \
--to=darrick.wong@oracle.com \
--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).