xfs: account for log space when formatting new AGs
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:30:21 +0000 (19:30 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:30:21 +0000 (19:30 -0700)
commitf327a00745fffd9159d54b442cb75c0266fb89d6
treeb3630155a8ea04f10b13e1e24ae9dc8131954883
parent8d90857cff445f176a591d01c0999e8d563217bf
xfs: account for log space when formatting new AGs

When we're writing out a fresh new AG, make sure that we don't list an
internal log as free and that we create the rmap for the region.  growfs
never does this, but we will need it when we hook up mkfs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_ag.c