diff options
| author | Enzo Matsumiya <[email protected]> | 2024-09-16 16:30:49 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2024-09-17 01:10:39 +0000 |
| commit | 5ac1f99fdd09d80223e8f47dffaea41a6563aace (patch) | |
| tree | d8c4bea7ef360eefb35f2d5d2e3d3ce64176a97f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | cifs: Update SFU comments about fifos and sockets (diff) | |
| download | kernel-5ac1f99fdd09d80223e8f47dffaea41a6563aace.tar.gz kernel-5ac1f99fdd09d80223e8f47dffaea41a6563aace.zip | |
smb: client: fix compression heuristic functions
Change is_compressible() return type to bool, use WARN_ON_ONCE(1) for
internal errors and return false for those.
Renames:
check_repeated_data -> has_repeated_data
check_ascii_bytes -> is_mostly_ascii (also refactor into a single loop)
calc_shannon_entropy -> has_low_entropy
Also wraps "wreq->Length" in le32_to_cpu() in should_compress() (caught
by sparse).
Signed-off-by: Enzo Matsumiya <[email protected]>
Suggested-by: Dan Carpenter <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions
