From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379433; b=SIPSjKHAYuGCBTPNoOfEKXYD7w8pYsr7hWajbyjMzzu9ukku/+42MW5W/gpTbVLXgzCT xS9noWfPPCznMfS/pMZKdg6FerkUrKxofWRPKg7RnFDMpbOoqySf4t3pk1ZhZKDVihHnO 6f2Vpy0M1BDcssd6MRrgodTqj8GEHAzQz9YUPZw+7DgNZjxmPy1HDjWGyuJidLHD53qF6 xeEvSZCY3vh2vUf6wRvi5fSja4odOTxs2CufzZukACzU7zRZzOMzZf9eP2IS9MiyELIs9 FZhOIvWGMAXiRKsNCbOc4OzMaiUmZ/M5IhTf0eMBpw0X1XhnnEuybNHuE6z/hC9jG3A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379433; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=GI5AoJ1vxt5CbmgyDwBHHw3BQ54jGN58YfUWYn3Aiu0=; b=wt3FU0wBp7uDStbHLH3GicVYR1OOO4nl7zlWf/HSheQu1ACYA3VriAzKn+lMyZFmro9Z O9yC0Lo2YSOctEkcvJlEad1tvHevUPU7l9pdGhBxHnGQb4uzUKWpF1CoJeglUi4QGH08g QDrfVMzuYYQfbFxlK71vpZLFV8XxsQ2+QBKxCkaziEpHSHi1hRShCkaeEuvbbUZqASPop q2kzsDdXXYOtixCtV+iDAk9l1Aq3k1YmAKZ7YBbIDmbBXIN/yGGZmQ5lkmnKmZKIA4mHr R3om2viXX6CrKj7GnzwvsA/8erZLHiUkls80BQ4nDiTVp80Jg4ybuUv/v14qRIbim/w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FewumH2f; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D95F606A322; Fri, 4 Dec 2026 10:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FewumH2f Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CC9E1F00897; Fri, 4 Dec 2026 10:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796379433; bh=GI5AoJ1vxt5CbmgyDwBHHw3BQ54jGN58YfUWYn3Aiu0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=FewumH2fXmW6K8POEONMOlYfg757FNfcpt/2MkivC4mKfON1/zpyhoQw7786IaQP7 1QwBlgChABQvSfa/9ON0OmjD/g6Bevt2amUZyJUpAygRD35u5Sqkgr0xEstoSftHGB V2EvyvA3RoIBZ4+pDi+/huNZdmVRD7hJasu25RuFlixoRjfcHExAg2XQRSXriQmy9h wajo/pS4D8CxuKW1Y9hNf8/CqwAQuGZGWGhKMvNwNQ3sLtKZedLY8Z1NOVMqb4QQoU g2Oshy5Jz9CI+Cqkvnpw0eIU+z3djkVNYb+nyVyV2bzsps4VPdKHRjo5v0UThcCt8A d+PzEPHwnVZqA== Date: Fri, 4 Dec 2026 11:17:08 +0100 From: Carlos Maiolino To: Yifan Feng Cc: Christoph Hellwig , "Darrick J. Wong" , John Garry , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] xfs: don't reset max_atomic_write on a remount without the option Message-ID: References: <20261203225201.52120-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: <20261203225201.52120-1-evanfengff@gmail.com> On Thu, Dec 03, 2026 at 02:52:01PM -0800, Yifan Feng wrote: > xfs_fs_reconfigure() applies the max_atomic_write value of the remount > options whenever it differs from the mounted one, and without the > option that value is 0, the default. So a remount that does not name > max_atomic_write resets the limit: > > # mount -o max_atomic_write=64k /dev/vda /mnt > # findmnt -no OPTIONS /mnt > rw,relatime,inode64,logbufs=8,logbsize=32k,noquota,max_atomic_write=64k > # mount -o remount,noatime /dev/vda /mnt > # findmnt -no OPTIONS /mnt > rw,noatime,inode64,logbufs=8,logbsize=32k,noquota > > Start the options of a remount from the value in use, in one block > with the inode32 setting. A remount with max_atomic_write=0 still goes > back to the default. > > Fixes: 4528b9052731 ("xfs: allow sysadmins to specify a maximum atomic write limit at mount time") > Signed-off-by: Yifan Feng This doesn't apply to the tree. Rebase and resend... > --- > v2: one FS_CONTEXT_FOR_RECONFIGURE block for both inherited options, as suggested by Christoph Hellwig. > v1: https://lore.kernel.org/r/20261202210828.24694-1-evanfengff@gmail.com > > Applies on top of the inode32 remount patch, https://lore.kernel.org/r/20261130001917.56901-1-evanfengff@gmail.com . Tested in QEMU with mount(2), mount(8) and fspick()/fsconfig(). fstests -g quick plus 178 remount tests give the same result lists as with v1 (XFS_DEBUG, xfsprogs 6.1.0). > Found and written with the help of an AI coding assistant.