diff options
author | Christoph Hellwig <hch@lst.de> | 2023-12-18 05:57:35 +0100 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2023-12-22 11:18:15 +0530 |
commit | 26e5eed7802299a666714ee511da58d906e8770c (patch) | |
tree | 6662bd15fef4842e3cd2df5770b7285e83bc6157 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | a39f5ccc30d5a00b7e6d921aa387ad17d1e6d168 (diff) |
xfs: reorder the minlen and prod calculations in xfs_bmap_rtalloc
xfs_bmap_rtalloc is a bit of a mess in terms of calculating the locally
need variables. Reorder them a bit so that related code is located
next to each other - the raminlen calculation moves up next to where
the maximum len is calculated, and all the prod calculation is move
into a single place and rearranged so that the real prod calculation
only happens when it actually is needed.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions