From: Jan Kara <jack@suse.cz>
To: Zhang Yi <yi.zhang@huaweicloud.com>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu,
adilger.kernel@dilger.ca, jack@suse.cz, yi.zhang@huawei.com,
yukuai3@huawei.com
Subject: Re: [PATCH v4 2/2] ext4: add journal cycled recording support
Date: Fri, 17 Mar 2023 14:01:31 +0100 [thread overview]
Message-ID: <20230317130131.k2oabqxikk6p36en@quack3> (raw)
In-Reply-To: <20230317090926.4149399-3-yi.zhang@huaweicloud.com>
On Fri 17-03-23 17:09:26, Zhang Yi wrote:
> From: Zhang Yi <yi.zhang@huawei.com>
>
> Always enable 'JBD2_CYCLE_RECORD' journal option on ext4, letting the
> jbd2 continue to record new journal transactions from the recovered
> journal head or the checkpointed transactions in the previous mount.
>
> Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Looks good to me. Feel free to add:
Reviewed-by: Jan Kara <jack@suse.cz>
Honza
> ---
> fs/ext4/super.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/fs/ext4/super.c b/fs/ext4/super.c
> index 88f7b8a88c76..9b46adae241b 100644
> --- a/fs/ext4/super.c
> +++ b/fs/ext4/super.c
> @@ -5691,6 +5691,11 @@ static void ext4_init_journal_params(struct super_block *sb, journal_t *journal)
> journal->j_flags |= JBD2_ABORT_ON_SYNCDATA_ERR;
> else
> journal->j_flags &= ~JBD2_ABORT_ON_SYNCDATA_ERR;
> + /*
> + * Always enable journal cycle record option, letting the journal
> + * records log transactions continuously between each mount.
> + */
> + journal->j_flags |= JBD2_CYCLE_RECORD;
> write_unlock(&journal->j_state_lock);
> }
>
> --
> 2.31.1
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
prev parent reply other threads:[~2023-03-17 13:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 9:09 [PATCH v4 0/2] ext4, jbd2: journal cycled record transactions between each mount Zhang Yi
2023-03-17 9:09 ` [PATCH v4 1/2] jbd2: continue to record log " Zhang Yi
2023-03-17 10:33 ` wangjianjian (C)
2023-03-17 15:25 ` Theodore Ts'o
2023-03-18 6:13 ` Zhang Yi
2023-03-17 13:01 ` Jan Kara
2023-03-17 9:09 ` [PATCH v4 2/2] ext4: add journal cycled recording support Zhang Yi
2023-03-17 13:01 ` Jan Kara [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=20230317130131.k2oabqxikk6p36en@quack3 \
--to=jack@suse.cz \
--cc=adilger.kernel@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=yi.zhang@huawei.com \
--cc=yi.zhang@huaweicloud.com \
--cc=yukuai3@huawei.com \
/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