From: zhanchengbin <zhanchengbin1@huawei.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: <linux-ext4@vger.kernel.org>, linfeilong <linfeilong@huawei.com>,
<liuzhiqiang26@huawei.com>, <liangyun2@huawei.com>,
Alexey Lyahkov <alexey.lyashkov@gmail.com>
Subject: Re: [PATCH] tune2fs: do not change j_tail_sequence in journal superblock
Date: Tue, 9 Aug 2022 09:31:21 +0800 [thread overview]
Message-ID: <2ba40455-3e96-528c-ae70-d73a4d7f2869@huawei.com> (raw)
In-Reply-To: <3f55f3ad-ba78-e590-65b7-07ff95c78ed1@huawei.com>
Friendly ping...
On 2022/8/4 18:33, zhanchengbin wrote:
> The function recover_ext3_journal in debugfs/journal.c, if the log
> replay is over,
> the j_tail_sequence in journal superblock is not changed to the value of
> the last
> transaction sequence, this will cause subsequent log commitids to count
> from the
> commitid in last time.
> After tune2fs -e, the log commitid is counted from the commitid in last
> time, if
> the log ID of the current operation overlaps with that of the last
> operation, this
> will cause logs that were previously replayed by tune2fs to be replayed
> here.
>
> Signed-off-by: zhanchengbin <zhanchengbin1@huawei.com>
> Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
> Signed-off-by: liangyun <liangyun2@huawei.com>
> ---
> debugfs/journal.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/debugfs/journal.c b/debugfs/journal.c
> index 095fff00..5bac0d3b 100644
> --- a/debugfs/journal.c
> +++ b/debugfs/journal.c
> @@ -769,6 +769,8 @@ static errcode_t recover_ext3_journal(ext2_filsys fs)
> mark_buffer_dirty(journal->j_sb_buffer);
> }
>
> + journal->j_tail_sequence = journal->j_transaction_sequence;
> +
> errout:
> jbd2_journal_destroy_revoke(journal);
> jbd2_journal_destroy_revoke_record_cache();
next prev parent reply other threads:[~2022-08-09 1:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 11:23 [BUG] Tune2fs and fuse2fs do not change j_tail_sequence in journal superblock zhanchengbin
2022-08-03 4:52 ` Alexey Lyahkov
2022-08-04 8:30 ` zhanchengbin
2022-08-04 10:33 ` [PATCH] tune2fs: " zhanchengbin
2022-08-09 1:31 ` zhanchengbin [this message]
2022-08-13 1:12 ` Theodore Ts'o
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=2ba40455-3e96-528c-ae70-d73a4d7f2869@huawei.com \
--to=zhanchengbin1@huawei.com \
--cc=alexey.lyashkov@gmail.com \
--cc=liangyun2@huawei.com \
--cc=linfeilong@huawei.com \
--cc=linux-ext4@vger.kernel.org \
--cc=liuzhiqiang26@huawei.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 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).