diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-13 14:23:49 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-10-18 17:35:31 -0400 |
commit | 6b103cc0ba58c680ab4e59dfa2fca4ceedfb5495 (patch) | |
tree | e0dd86ad1921fd6e677c4460ab9f96f64f4b06f9 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | 64f30e80d653c4d5aa0a7f1390789348af0cf8f2 (diff) | |
download | linux-6b103cc0ba58c680ab4e59dfa2fca4ceedfb5495.tar.gz linux-6b103cc0ba58c680ab4e59dfa2fca4ceedfb5495.tar.bz2 linux-6b103cc0ba58c680ab4e59dfa2fca4ceedfb5495.zip |
ufs: take the handling of free block counters into a helper
There are 3 places where those counters (many and varied...) are
adjusted - when we are freeing fragments and get an entire block
freed, when we are freeing blocks and (in opposite direction) when
we are grabbing a block. The logics is identical (modulo the
sign of adjustment) in all three; better take it into a helper -
less duplication and less clutter in the callers that way.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions