Whamcloud - gitweb
LU-17812 coverity: Fixes Boolean operation on a constant 26/55926/4
authorRajeev Mishra <rajeevm@hpe.com>
Sat, 3 Aug 2024 18:28:58 +0000 (18:28 +0000)
committerOleg Drokin <green@whamcloud.com>
Fri, 16 Aug 2024 23:54:51 +0000 (23:54 +0000)
commit88c2cc8118d38f70cc32c932e38a645636b7cfe2
tree870d334101cbd52fce9d2eaa21b431851badb240
parentae475331db533826fe444a71bf61ad08d42c0a21
LU-17812 coverity: Fixes Boolean operation on a constant

This commit fixes the coverity issue introduced by the
previous commit of LU-17812. Below given is the coverity
report.
CID 440624 Integer handling issue constant_expression_result
The expression "ldlm_lock_to_ns(__ext->oe_dlmlock)->
ns_dump_stack_on_error && 1 /* D_ERROR & D_ERROR */" performs a
Boolean operation on a constant

Fixes: 70b9dc57a99d ("LU-17812 ldlm: stack trace log for LDLM error")
Signed-off-by: Rajeev Mishra <rajeevm@hpe.com>
Change-Id: I300831598c54f3f96719938253c7eaacb83f299f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55926
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_resource.c
lustre/tests/sanity.sh