commit | ac5cebeed61351c0a60c65bd20c70120469c46ff | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <djwong@kernel.org> | Mon Apr 15 14:54:12 2024 -0700 |
committer | Darrick J. Wong <djwong@kernel.org> | Mon Apr 15 14:54:12 2024 -0700 |
tree | b6273d5aaa91c015b3f85e054639f4a3596ba1aa | |
parent | 6b700a5be9b3b69419474622336c63fdc1cc3ca4 [diff] |
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>