Re: [PATCH] xfs: don't reset max_atomic_write on a remount without the option
From: Christoph Hellwig
Date: Thu Dec 03 2026 - 03:13:42 EST
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?