From: Christoph Hellwig <hch@lst.de>
To: Yifan Feng <evanfengff@gmail.com>
Cc: Carlos Maiolino <cem@kernel.org>, Christoph Hellwig <hch@lst.de>,
"Darrick J. Wong" <djwong@kernel.org>,
John Garry <john.garry@linux.dev>,
linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xfs: don't reset max_atomic_write on a remount without the option
Date: Thu, 3 Dec 2026 09:13:33 +0100 [thread overview]
Message-ID: <20261203081333.GA30040@lst.de> (raw)
In-Reply-To: <20261202210828.24694-1-evanfengff@gmail.com>
On Wed, Dec 02, 2026 at 01:08:28PM -0800, Yifan Feng wrote:
> diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
> index bdab50bce3c9..e158adf61cb6 100644
> --- a/fs/xfs/xfs_super.c
> +++ b/fs/xfs/xfs_super.c
> @@ -2324,6 +2324,10 @@ xfs_init_fs_context(
> xfs_has_small_inums(XFS_M(fc->root->d_sb)))
> mp->m_features |= XFS_FEAT_SMALL_INUMS;
>
> + /* A remount without max_atomic_write keeps what is in use. */
> + if (fc->purpose == FS_CONTEXT_FOR_RECONFIGURE)
> + mp->m_awu_max_bytes = XFS_M(fc->root->d_sb)->m_awu_max_bytes;
The change looks good, but should we have a common
FS_CONTEXT_FOR_RECONFIGURE with the above check to keep all the
"inherited" options in that for clarity?
prev parent reply other threads:[~2026-12-03 8:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 21:08 [PATCH] xfs: don't reset max_atomic_write on a remount without the option Yifan Feng
2026-12-03 8:13 ` Christoph Hellwig [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=20261203081333.GA30040@lst.de \
--to=hch@lst.de \
--cc=cem@kernel.org \
--cc=djwong@kernel.org \
--cc=evanfengff@gmail.com \
--cc=john.garry@linux.dev \
--cc=linux-kernel@vger.kernel.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