xfs: make xfs_growfs_rt update secondary superblocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 7 Oct 2020 20:57:52 +0000 (13:57 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 13 Oct 2020 15:41:31 +0000 (08:41 -0700)
commit7249c95a3fd72c7f47ede0275b9fc4535db43e48
treec01571e4d31fb4eb38df8d4924f4eedbc70adbdf
parentf4c32e87de7d66074d5612567c5eac7325024428
xfs: make xfs_growfs_rt update secondary superblocks

When we call growfs on the data device, we update the secondary
superblocks to reflect the updated filesystem geometry.  We need to do
this for growfs on the realtime volume too, because a future xfs_repair
run could try to fix the filesystem using a backup superblock.

This was observed by the online superblock scrubbers while running
xfs/233.  One can also trigger this by growing an rt volume, cycling the
mount, and creating new rt files.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
fs/xfs/xfs_rtalloc.c