Whamcloud - gitweb
EX-7601 osc: add COMPR_GAP check to compress_request
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 3 Jan 2024 21:39:31 +0000 (16:39 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 13 Jan 2024 02:45:53 +0000 (02:45 +0000)
commitf4842791b76b69cbe665d6127915ce945188d1d2
tree5fec458eef243771e79bfe07ae4b99bf8eb4e28a
parent70133e8ff5c66b43a0dfee7c7e62cb83d7165bdc
EX-7601 osc: add COMPR_GAP check to compress_request

Currently, compress_request will build the compression
buffer (calling merge_chunk()) for requests which are less
than the minimum compression gap.  This is noticed in the
compression code when it checks if there's enough data to
attempt compression, but we can do a trivial check in
compress_request() to save that work.

Also fix a few minor style things.

This is not an important fix, but I discovered it while
investigating another issue and it's trivial to resolve.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ieb32e6297e10d229f23c58e2ef4d933ce3dda4f2
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53587
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_compr.h
lustre/obdclass/lustre_compr.c
lustre/osc/osc_compress.c