Whamcloud - gitweb
LU-6142 lustre: convert some container_of to *_safe 84/38384/2
authorMr NeilBrown <neilb@suse.de>
Mon, 27 Apr 2020 05:42:38 +0000 (15:42 +1000)
committerOleg Drokin <green@whamcloud.com>
Tue, 2 Jun 2020 04:28:16 +0000 (04:28 +0000)
commit46f1fc6c1ba493cd81e47917c413951a0f096d5e
tree7945e4dca10ed24d973f385e186137c83e2e5544
parent9611b3c3f47a486adc41b2d5370561e94dcea753
LU-6142 lustre: convert some container_of to *_safe

Each of these uses of container_of0() cannot be determined from local
inspection to always received a valid pointer, so container_of()
cannot be used.
So convert them to the upstream standard container_of_safe().

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I7d5551ae4d88bc931f7edbd3447b5bb2db8ce40c
Reviewed-on: https://review.whamcloud.com/38384
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
14 files changed:
lustre/lfsck/lfsck_internal.h
lustre/llite/vvp_internal.h
lustre/lmv/lmv_internal.h
lustre/lod/lod_internal.h
lustre/mdd/mdd_internal.h
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_mds.c
lustre/mgs/mgs_internal.h
lustre/obdecho/echo.c
lustre/obdecho/echo_client.c
lustre/ofd/ofd_internal.h
lustre/osp/lwp_dev.c
lustre/osp/osp_internal.h
lustre/quota/qmt_internal.h