diff options
author | Christoph Hellwig <hch@lst.de> | 2024-11-03 20:18:39 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-11-05 13:38:27 -0800 |
commit | 819928770bd91960f88f5a4dfa21b35a1bade61b (patch) | |
tree | c3e652355ee635e4fcb4f4b12a45efb6ed3656fa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e9c4d8bfb26c13c41b73fdf4183d3df2d392101e (diff) |
xfs: add a xfs_group_next_range helper
Add a helper to iterate over iterate over all groups, which can be used
as a simple while loop:
struct xfs_group *xg = NULL;
while ((xg = xfs_group_next_range(mp, xg, 0, MAX_GROUP))) {
...
}
This will be wrapped by the realtime group code first, and eventually
replace the for_each_rtgroup_from and for_each_rtgroup_range helpers.
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions