xfs: perag conversions for 5.20
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | xfs: make last AG grow/shrink perag centricfs/ fs/ fs/ +1 more | +40 | 0 replies | |
| 2/14 | xfs: kill xfs_ialloc_pagi_init()fs/ fs/ fs/ | +16 | 0 replies | |
| 3/14 | xfs: pass perag to xfs_ialloc_read_agi()fs/ fs/ fs/ +4 more | +31 | 0 replies | |
| 4/14 | xfs: kill xfs_alloc_pagf_init()fs/ fs/ fs/ +4 more | +19 | 0 replies | |
| 5/14 | xfs: pass perag to xfs_alloc_read_agf()fs/ fs/ fs/ +17 more | +70 | 1 reply | |
| 6/14 | xfs: pass perag to xfs_read_agifs/ fs/ fs/ +1 more | +40 | 0 replies | |
| 7/14 | xfs: pass perag to xfs_read_agffs/ fs/ | +14 | 0 replies | |
| 8/14 | xfs: pass perag to xfs_alloc_get_freelistfs/ fs/ fs/ +2 more | +13 | 0 replies | |
| 9/14 | xfs: pass perag to xfs_alloc_put_freelistfs/ fs/ fs/ +2 more | +10 | 0 replies | |
| 10/14 | xfs: pass perag to xfs_alloc_read_agflfs/ fs/ fs/ +1 more | +20 | 0 replies | |
| 11/14 | xfs: Pre-calculate per-AG agbno geometryfs/ fs/ fs/ +14 more | +115 | 1 reply | |
| 12/14 | xfs: Pre-calculate per-AG agino geometryfs/ fs/ fs/ +8 more | +104 | 1 reply | |
| 13/14 | xfs: replace xfs_ag_block_count() with perag accessesfs/ fs/ fs/ | +11 | 1 reply | |
| 14/14 | xfs: make is_log_ag() a first class helperfs/ fs/ fs/ +5 more | +18 | 1 reply |
Reviews trailers per patch
All 14 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Christoph Hellwig | Darrick J. Wong |
|---|---|---|
| Series | R-b | |
| 1/14 | R-b | |
| 2/14 | R-b | |
| 3/14 | R-b | |
| 4/14 | R-b | |
| 5/14 | R-b | |
| 6/14 | R-b | |
| 7/14 | R-b | |
| 8/14 | R-b | |
| 9/14 | R-b | |
| 10/14 | R-b | |
| 11/14 | R-b | |
| 12/14 | R-b | |
| 13/14 | R-b | |
| 14/14 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/14] xfs: perag conversions for 5.20
Hi folks,
This is the set of per-ag conversions that I'm proposing for the 5.20 cycle. It is the initial subset of changes that were listed in the larger "upcoming perag changes for shrink" patchset here:
https://lore.kernel.org/linux-xfs/[email protected]/
This series drives the perag down into the AGI, AGF and AGFL access routines and unifies the perag structure initialisation with the high level AG header read functions. This largely replaces the xfs_mount/agno pair that is passed to all these functions with a perag, and in most places we already have a perag ready to pass in. There are a few places where perags need to be grabbed before reading the AG header buffers - some of these will need to be driven to higher layers to ensure we can run operations on AGs without getting stuck part way through waiting on a perag reference.
The latter section of this patchset moves some of the AG geometry information from the xfs_mount to the xfs_perag, and starts converting code that requires geometry validation to use a perag instead of a mount and having to extract the AGNO from the object location. This also allows us to store the AG size in the perag and then we can stop having to compare the agno against sb_agcount to determine if the AG is the last AG and so has a runt size. This greatly simplifies some of the type validity checking we do and substantially reduces the CPU overhead of type validity checking. It also cuts over 1.2kB out of the binary size.
This runs through fstests cleanly - I don't expect there to be hidden surprises in it so I think these patches are good to go for the 5.20 cycle.
Comments and thoughts welcome....
-Dave.