Thread (24 messages) 24 messages, 3 authors, 2025-05-05

Re: [PATCH 16/15] xfs: only call xfs_setsize_buftarg once per buffer target

From: Christoph Hellwig <hch@lst.de>
Date: 2025-05-02 06:57:33
Also in: linux-block, linux-ext4, linux-fsdevel, linux-xfs, lkml

On Thu, May 01, 2025 at 12:52:08PM -0700, Darrick J. Wong wrote:
From: Darrick J. Wong <djwong@kernel.org>

It's silly to call xfs_setsize_buftarg from xfs_alloc_buftarg with the
block device LBA size because we don't need to ask the block layer to
validate a geometry number that it provided us.  Instead, set the
preliminary bt_meta_sector* fields to the LBA size in preparation for
reading the primary super.

It's ok to lose the sync_blockdev call at buftarg creation time for the
external log and rt devices because we don't read from them until after
calling xfs_setup_devices.  We do need an explicit sync for the data
device because we read the primary super before calling
xfs_setup_devices.
Should we just it for all of them in open_devices now that the sync
is decoupled from setting the block size?

Otherwise this looks good, but I guess this should go before the atomic
writes series in the end?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help