]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: update the file system geometry after recoverying superblock buffers
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Oct 2024 06:04:52 +0000 (08:04 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 22 Oct 2024 11:37:18 +0000 (13:37 +0200)
commit6a18765b54e2e52aebcdb84c3b4f4d1f7cb2c0ca
treecb74969de79d65e56ab452dda6ddbdf98dbf49ff
parentaa67ec6a25617e36eba4fb28a88159f500a6cac6
xfs: update the file system geometry after recoverying superblock buffers

Primary superblock buffers that change the file system geometry after a
growfs operation can affect the operation of later CIL checkpoints that
make use of the newly added space and allocation groups.

Apply the changes to the in-memory structures as part of recovery pass 2,
to ensure recovery works fine for such cases.

In the future we should apply the logic to other updates such as features
bits as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf_item_recover.c
fs/xfs/xfs_log_recover.c