All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Maiolino <cem@kernel.org>
To: Yifan Feng <evanfengff@gmail.com>
Cc: 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 v2] xfs: don't reset max_atomic_write on a remount without the option
Date: Fri, 4 Dec 2026 11:17:08 +0100	[thread overview]
Message-ID: <axKTJCawnZYYm0gA@cronus.toxiclabs.cc> (raw)
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 <evanfengff@gmail.com>

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.


      parent reply	other threads:[~2026-12-04 10:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 22:52 [PATCH v2] xfs: don't reset max_atomic_write on a remount without the option Yifan Feng
2026-12-04  8:26 ` Christoph Hellwig
2026-12-04 10:17 ` Carlos Maiolino [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=axKTJCawnZYYm0gA@cronus.toxiclabs.cc \
    --to=cem@kernel.org \
    --cc=djwong@kernel.org \
    --cc=evanfengff@gmail.com \
    --cc=hch@lst.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.