From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796285618; b=b2s5qfOp8gQG03VuadxLthzhCzitDa01u3v2fercRfEk6vR/tJbJaPz4u34ybedV/uot Z250uN4e4fhtnUhe2X4mXBK+ejoNffZh2MGmuIozQCYhYUTJiBrKAfvjjwhfTwJvM12U3 rxOBHRPp2CoFKlQ4dwwIIey+wJAAK6p2InPyHbeAWNo9+yRSV2CCohmNd6wsFSCyeHUF0 8dyK3t81zG4G5k/dLebwgngpVmftvKUYM8+2ySpChltHoV7r3rQ09DSAWuLmPXyNKRFjd fiQDewOGGKpHHt51E7Fysl9An0qNdAQoUbephtXQ8LVHtpp0uWmBsqsGjMTM2iivhCQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796285618; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=zK4kpufzFq7oMaGYhc79lGF8A5tKJpkdC+6XAHEcT7M=; b=dp5yD5r60XEW0KlCC1KKeCwxMyjND6ih5PRG49jVtNi0+zqfxdh0hT6KjOVLOhqyCdSs V5lYjRgAnWT1bhAVCfki8Vg2jeLHvNQW9WJNg3yilB4yBaEwUfigsk2AKVxUgKfXpXD4E mcLFi7OOKTKtHkH4AQqTnkj0gmSkr2NtDxFV0PRSAD/z238zcYjH1AEhRWUJnCD/jMz5a nSc7zckb5zl0Hn1m2R0PKdvP36x7+/vxJTKxorLFuV1aklhz4TpwK0YaKf83Hc1QOCE3g FKkCsd4oOSftwzKnaYbE4cxJM5LYjQaVPnhaUncUNZ3Pb2kfbsKoYVGiPNQ/omgCv5Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D61F7606A322; Thu, 3 Dec 2026 08:13:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D61F7606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id EDEA468BFE; Thu, 3 Dec 2026 09:13:33 +0100 (CET) Date: Thu, 3 Dec 2026 09:13:33 +0100 From: Christoph Hellwig To: Yifan Feng Cc: Carlos Maiolino , Christoph Hellwig , "Darrick J. Wong" , John Garry , 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 Message-ID: <20261203081333.GA30040@lst.de> References: <20261202210828.24694-1-evanfengff@gmail.com> X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202210828.24694-1-evanfengff@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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?