]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7bdcb61d328e10580ba4ba2e30e7a11b3acb9c5
treeb3630155a8ea04f10b13e1e24ae9dc8131954883
parent5eb6efc71d83b746fc9f17f0da4657dbeb79348a
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