@@ -21,6 +21,7 @@
#include "xfs_ag.h"
#include "xfs_ag_resv.h"
#include "xfs_trace.h"
+#include "xfs_rtgroup.h"
/*
* Write new AG headers to disk. Non-transactional, but need to be
@@ -306,6 +307,9 @@ xfs_growfs_data(
/* Update secondary superblocks now the physical grow has completed */
error = xfs_update_secondary_sbs(mp);
+ if (error)
+ goto out_error;
+ error = xfs_rtgroup_update_secondary_sbs(mp);
out_error:
/*
@@ -39,6 +39,7 @@
#include "xfs_ioctl.h"
#include "xfs_xattr.h"
#include "xfs_rtbitmap.h"
+#include "xfs_rtgroup.h"
#include <linux/mount.h>
#include <linux/namei.h>
@@ -1719,6 +1720,8 @@ xfs_ioc_setlabel(
*/
mutex_lock(&mp->m_growlock);
error = xfs_update_secondary_sbs(mp);
+ if (!error)
+ error = xfs_rtgroup_update_secondary_sbs(mp);
mutex_unlock(&mp->m_growlock);
invalidate_bdev(bdev);