diff options
author | Christoph Hellwig <hch@lst.de> | 2024-11-03 20:18:38 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-11-05 13:38:27 -0800 |
commit | e9c4d8bfb26c13c41b73fdf4183d3df2d392101e (patch) | |
tree | 35334d4e40d65cc2944783e544f2f2585824b0fc /fs/xfs/xfs_rmap_item.c | |
parent | 0a4d79741d6f82159dc1742c11e189da8a89511d (diff) | |
download | linux-e9c4d8bfb26c13c41b73fdf4183d3df2d392101e.tar.gz linux-e9c4d8bfb26c13c41b73fdf4183d3df2d392101e.tar.bz2 linux-e9c4d8bfb26c13c41b73fdf4183d3df2d392101e.zip |
xfs: factor out a generic xfs_group structure
Split the lookup and refcount handling of struct xfs_perag into an
embedded xfs_group structure that can be reused for the upcoming
realtime groups.
It will be extended with more features later.
Note that he xg_type field will only need a single bit even with
realtime group support. For now it fills a hole, but it might be
worth to fold it into another field if we can use this space better.
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_rmap_item.c')
-rw-r--r-- | fs/xfs/xfs_rmap_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_rmap_item.c b/fs/xfs/xfs_rmap_item.c index 88b5580e1e19..1b83d09351f0 100644 --- a/fs/xfs/xfs_rmap_item.c +++ b/fs/xfs/xfs_rmap_item.c @@ -243,7 +243,7 @@ xfs_rmap_update_diff_items( struct xfs_rmap_intent *ra = ri_entry(a); struct xfs_rmap_intent *rb = ri_entry(b); - return ra->ri_pag->pag_agno - rb->ri_pag->pag_agno; + return pag_agno(ra->ri_pag) - pag_agno(rb->ri_pag); } /* Log rmap updates in the intent item. */ |