Whamcloud - gitweb
LU-6142 lnet: use list_first_entry() where appropriate. 27/50827/4
authorMr NeilBrown <neilb@suse.de>
Wed, 6 Nov 2019 22:43:52 +0000 (09:43 +1100)
committerOleg Drokin <green@whamcloud.com>
Fri, 9 Jun 2023 05:24:15 +0000 (05:24 +0000)
commit50e1a93386b05de89774d0a4a26c954aa3e1b4ab
tree0c58eb98d9f138ccc3d7fa15f9bf62e555c20dba
parent8683b953347fc16a7fa55a838d30b0754df95cfa
LU-6142 lnet: use list_first_entry() where appropriate.

This patch changes
   list_entry(foo.next, ...)
to
   list_first_entry(&foo, ...)

in cases where 'foo' is a list head, rather than a list member.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ied04412bf976d8fb219bb3c14c56879d2cf83ae7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50827
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/selftest/conrpc.c
lnet/selftest/console.c
lnet/selftest/framework.c
lnet/selftest/rpc.c