summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-11-04 07:18:45 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-11-06 00:38:29 +0300
commit759cc1989a53024066b0f2ea52c206b4ff8f522c (patch)
tree9fc7be0d3896d3f6b23235c88bc2c907c651c304 /scripts/lib
parent198febb9fe653503f94edc080529fa9e1e22d359 (diff)
downloadlinux-759cc1989a53024066b0f2ea52c206b4ff8f522c.tar.xz
xfs: add group based bno conversion helpers
Add/move the blocks, blklog and blkmask fields to the generic groups structure so that code can work with AGs and RTGs by just using the right index into the array. Then, add convenience helpers to convert block numbers based on the generic group. This will allow writing code that doesn't care if it is used on AGs or the upcoming realtime groups. 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 'scripts/lib')
0 files changed, 0 insertions, 0 deletions