[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250423081055.GA28307@lst.de>
Date: Wed, 23 Apr 2025 10:10:55 +0200
From: Christoph Hellwig <hch@....de>
To: John Garry <john.g.garry@...cle.com>
Cc: "Darrick J. Wong" <djwong@...nel.org>, brauner@...nel.org, hch@....de,
viro@...iv.linux.org.uk, jack@...e.cz, cem@...nel.org,
linux-fsdevel@...r.kernel.org, dchinner@...hat.com,
linux-xfs@...r.kernel.org, linux-kernel@...r.kernel.org,
ojaswin@...ux.ibm.com, ritesh.list@...il.com,
martin.petersen@...cle.com, linux-ext4@...r.kernel.org,
linux-block@...r.kernel.org, catherine.hoang@...cle.com,
linux-api@...r.kernel.org
Subject: Re: [PATCH v8 05/15] xfs: ignore HW which cannot atomic write a
single block
On Wed, Apr 23, 2025 at 08:15:43AM +0100, John Garry wrote:
> Ideally we could have not set them in the first place, but need to know the
> blocksize when xfs_alloc_buftarg() is called, but it is not yet set for
> mp/sb. Is there any neat way to know the blocksize when xfs_alloc_buftarg()
> is called?
The buftarg is needed to read the superblock, which is used to determine
the block size, so no.
But maybe we should just delay setting the atomic values until later so
that it can be done in a single pass? E.g. into xfs_setsize_buftarg
which then should probably be rename to something like
xfs_buftarg_setup.
Powered by blists - more mailing lists