Whamcloud - gitweb
LU-18609 ldlm: use of logical '&&' with constant operand 13/57613/3
authorBobi Jam <bobijam@whamcloud.com>
Thu, 2 Jan 2025 10:31:57 +0000 (18:31 +0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Feb 2025 06:20:28 +0000 (06:20 +0000)
commit3cf163f78cf8ef3b1a6fb9c06fb75a48fbabb2e3
tree9fc052527f297661392d3365d1b84fe80191a12b
parent0b0e63e9c8467cabc32f0d2bd9b022cc33dad3ef
LU-18609 ldlm: use of logical '&&' with constant operand

CoverityID: 454269 (CONSTANT_EXPRESSION_RESULT)
Transform bitwise operator result into a boolean value for boolean
operation.

Fixes: 5517eab06e ("LU-1876 hsm: layout lock implementation on server side")
Fixes: 70b9dc57a9 ("LU-17812 ldlm: stack trace log for LDLM error")
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I6a6c22a0d1178da99a5253cb03020b5cc2372a31
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57613
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
lustre/include/lustre_dlm.h