xfs: factor out AG header initialisation from growfs core
authorDave Chinner <dchinner@redhat.com>
Mon, 14 May 2018 06:10:05 +0000 (23:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 May 2018 01:12:51 +0000 (18:12 -0700)
commitcce77bcf48f50e40a2c08fb2a102e761464d2a15
tree7d09db3a6c4927799cad8b993cac4b6bc4503c19
parent879de98ead5106ffd5486aa6c11a3fad141049d9
xfs: factor out AG header initialisation from growfs core

The intialisation of new AG headers is mostly common with the
userspace mkfs code and growfs in the kernel, so start factoring it
out so we can move it to libxfs and use it in both places.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_fsops.c