diff options
author | Christoph Hellwig <hch@lst.de> | 2024-11-04 05:18:36 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-11-05 22:38:27 +0100 |
commit | 201c5fa342af75adaf762fd6c63380bb8001762d (patch) | |
tree | 27a180b22e58cae1820e9252500702f8c0f04ff2 /fs/xfs/xfs_buf_item_recover.c | |
parent | xfs: convert remaining trace points to pass pag structures (diff) | |
download | linux-201c5fa342af75adaf762fd6c63380bb8001762d.tar.xz linux-201c5fa342af75adaf762fd6c63380bb8001762d.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_buf_item_recover.c')
-rw-r--r-- | fs/xfs/xfs_buf_item_recover.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_buf_item_recover.c b/fs/xfs/xfs_buf_item_recover.c index 5180cbf5a90b..c627ad3a3bbb 100644 --- a/fs/xfs/xfs_buf_item_recover.c +++ b/fs/xfs/xfs_buf_item_recover.c @@ -724,9 +724,8 @@ xlog_recover_do_primary_sb_buffer( } /* - * Growfs can also grow the last existing AG. In this case we also need - * to update the length in the in-core perag structure and values - * depending on it. + * If the last AG was grown or shrunk, we also need to update the + * length in the in-core perag structure and values depending on it. */ error = xfs_update_last_ag_size(mp, orig_agcount); if (error) |