Whamcloud - gitweb
LU-6142 lov: convert container_of0() calls. 82/38382/4
authorMr NeilBrown <neilb@suse.de>
Mon, 27 Apr 2020 05:31:55 +0000 (15:31 +1000)
committerOleg Drokin <green@whamcloud.com>
Sat, 4 Jul 2020 03:02:29 +0000 (03:02 +0000)
commit8b11e37f019ca5eddd977974dd496a8f09f58887
tree9a3811ec02476cda048c9f005975be71478f8256
parent200d4423787524eb8115b4fa4588a248065bd2be
LU-6142 lov: convert container_of0() calls.

Most calls to container_of0() in lustre/lov/ are preceded by an
LINVRNT() which assures us that the pointer is valid, so
container_of() can be used instead.

Only in lov2obd() is there not context, so that call is changed to use
container_of_safe()

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I8b3ccc8f0ac1a32122f043e8feec078fcfe2452b
Reviewed-on: https://review.whamcloud.com/38382
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lov/lov_cl_internal.h
lustre/lov/lov_internal.h