Whamcloud - gitweb
EX-7775 utils: fix cp_comp_type size
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 28 Jun 2023 09:34:22 +0000 (09:34 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Jul 2023 10:01:55 +0000 (10:01 +0000)
commitdb58f65cb900705a4d4f88172c00bbf1f65d9574
tree566de5b2dad9079094bd35b068722aa3ebba3ed2
parent781bb7d00556bca2ad29fca12167b95699b604b2
EX-7775 utils: fix cp_comp_type size

cp_comp_type should be 8 bits, as llch_compr_type and all associated
variables are declared as u8.
So remove useless cp_comp_enabled and fix code to test for compressed
component with cp_comp_type against LL_COMPR_TYPE_NONE.
And update LL_COMPR_TYPE_MAX value to 255 to avoid conflicts with
future compression types.

Fixes: f43b9ce9af ("EX-6127 osc: osc brw request compression")
Test-Parameters: trivial
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ia15868ac0ac003b62942540a57f782226ae8c141
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51481
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/cl_object.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lov/lov_ea.c
lustre/lov/lov_io.c
lustre/lov/lov_object.c
lustre/osc/osc_compress.c
lustre/osc/osc_request.c
lustre/utils/liblustreapi_layout.c