From: Shan Hai <shan.hai@oracle.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-xfs@vger.kernel.org
Subject: Re: [PATCH 1/1] xfs: remove lsn relevant fields from xfs_trans structure and its users
Date: Fri, 12 May 2017 08:49:14 +0800 [thread overview]
Message-ID: <cb4543fe-edcc-30a5-a0a1-41ba82476bf0@oracle.com> (raw)
In-Reply-To: <20170511121130.GA8659@infradead.org>
On 2017年05月11日 20:11, Christoph Hellwig wrote:
> On Thu, May 11, 2017 at 02:40:09PM +0800, Shan Hai wrote:
>> The t_lsn is not used anymore and the t_commit_lsn is used as a tmp
>> storage for the checkpoint sequence number only in the current code.
>>
>> And the start/commit lsn are tracked as a transaction group tag in
>> the xfs_cil_ctx instead of a single transaction, so remove them from
>> the xfs_trans structure and their users to match with the design.
>>
>> Signed-off-by: Shan Hai <shan.hai@oracle.com>
>> ---
>> fs/xfs/xfs_log_cil.c | 5 ++---
>> fs/xfs/xfs_trace.h | 19 -------------------
>> fs/xfs/xfs_trans.h | 4 ----
>> 3 files changed, 2 insertions(+), 26 deletions(-)
>>
>> diff --git a/fs/xfs/xfs_log_cil.c b/fs/xfs/xfs_log_cil.c
>> index 82f1cbc..373f5e8 100644
>> --- a/fs/xfs/xfs_log_cil.c
>> +++ b/fs/xfs/xfs_log_cil.c
>> @@ -990,9 +990,8 @@
>> if (tp->t_ticket->t_curr_res < 0)
>> xlog_print_tic_res(mp, tp->t_ticket);
>>
>> - tp->t_commit_lsn = cil->xc_ctx->sequence;
>> if (commit_lsn)
>> - *commit_lsn = tp->t_commit_lsn;
>> + *commit_lsn = cil->xc_ctx->sequence;
>>
>> xfs_log_done(mp, tp->t_ticket, NULL, regrant);
>> xfs_trans_unreserve_and_mod_sb(tp);
>> @@ -1008,7 +1007,7 @@
>> * the log items. This affects (at least) processing of stale buffers,
>> * inodes and EFIs.
>> */
>> - xfs_trans_free_items(tp, tp->t_commit_lsn, false);
>> + xfs_trans_free_items(tp, cil->xc_ctx->sequence, false);
> Can we add a local variable to store cil->xc_ctx->sequence to make
> this a little more clear?
Ok, will be fixed in v2 patch.
Thanks
Shan Hai
> Otherwise this looks fine to me.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2017-05-12 0:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 6:40 [PATCH 1/1] xfs: remove lsn relevant fields from xfs_trans structure and its users Shan Hai
2017-05-11 12:11 ` Christoph Hellwig
2017-05-12 0:49 ` Shan Hai [this message]
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=cb4543fe-edcc-30a5-a0a1-41ba82476bf0@oracle.com \
--to=shan.hai@oracle.com \
--cc=hch@infradead.org \
--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).