Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit ac5cebee authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

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: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 6b700a5b
Branches
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment