diff options
| author | Christoph Hellwig <[email protected]> | 2023-12-18 04:57:35 +0000 |
|---|---|---|
| committer | Chandan Babu R <[email protected]> | 2023-12-22 05:48:15 +0000 |
| commit | 26e5eed7802299a666714ee511da58d906e8770c (patch) | |
| tree | 6662bd15fef4842e3cd2df5770b7285e83bc6157 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | xfs: remove XFS_RTMIN/XFS_RTMAX (diff) | |
| download | kernel-26e5eed7802299a666714ee511da58d906e8770c.tar.gz kernel-26e5eed7802299a666714ee511da58d906e8770c.zip | |
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 <[email protected]>
Reviewed-by: "Darrick J. Wong" <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
