summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-04-16 00:54:12 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-04-16 00:54:12 +0300
commitac5cebeed61351c0a60c65bd20c70120469c46ff (patch)
treeb6273d5aaa91c015b3f85e054639f4a3596ba1aa /tools/perf/scripts/python
parent6b700a5be9b3b69419474622336c63fdc1cc3ca4 (diff)
downloadlinux-ac5cebeed61351c0a60c65bd20c70120469c46ff.tar.xz
xfs: refactor non-power-of-two alignment checks
Create a helper function that can compute if a 64-bit number is an integer multiple of a 32-bit number, where the 32-bit number is not required to be an even power of two. This is needed for some new code for the realtime device, where we can set 37k allocation units and then have to remap them. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions