Whamcloud - gitweb
LU-11085 ldlm: change lock_matches() to return bool. 54/33854/12
authorMr. NeilBrown <neilb@suse.de>
Thu, 19 Nov 2020 14:09:19 +0000 (09:09 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 22:11:04 +0000 (22:11 +0000)
commitec138c5c58dd74700b29ad960be4ac5a881a35b0
tree61bf7ab9b635181a7cf4b7c594d52ed09ef19639
parent3db4d9a69e4256a42a815e32f9f5c26a68e17454
LU-11085 ldlm: change lock_matches() to return bool.

The name of the function lock_matches() sounds like it
performs a test (it does) and so should return a bool.
Returning a bool gives a slight code simplification (in
search_queue) and more simplification in future patches.

Linux-commit: e16983d96c775eb4527208d3c3d13f57e6d6233c

Change-Id: I1e3a09a0768abd0ab1cfada0fd69216cb9e85df7
Signed-off-by: Mr. NeilBrown <neilb@suse.de>
Reviewed-on: https://review.whamcloud.com/33854
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ldlm/ldlm_lock.c