Commit 7249c95a authored by Darrick J. Wong's avatar Darrick J. Wong

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: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarChandan Babu R <chandanrlinux@gmail.com>
parent f4c32e87
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "xfs_trans_space.h" #include "xfs_trans_space.h"
#include "xfs_icache.h" #include "xfs_icache.h"
#include "xfs_rtalloc.h" #include "xfs_rtalloc.h"
#include "xfs_sb.h"
/* /*
* Read and return the summary information for a given extent size, * Read and return the summary information for a given extent size,
...@@ -1102,7 +1102,13 @@ xfs_growfs_rt( ...@@ -1102,7 +1102,13 @@ xfs_growfs_rt(
if (error) if (error)
break; break;
} }
if (error)
goto out_free;
/* Update secondary superblocks now the physical grow has completed */
error = xfs_update_secondary_sbs(mp);
out_free:
/* /*
* Free the fake mp structure. * Free the fake mp structure.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment