xfs: split xfs_initialize_perag
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 04:18:36 +0000 (20:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:27 +0000 (13:38 -0800)
commit201c5fa342af75adaf762fd6c63380bb8001762d
tree27a180b22e58cae1820e9252500702f8c0f04ff2
parentc4ae021bcb6bf8bbb329ce8ef947a43009bc2fe4
xfs: split xfs_initialize_perag

Factor out a xfs_perag_alloc helper that allocates a single perag
structure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ag.h
fs/xfs/xfs_buf_item_recover.c