Whamcloud - gitweb
LU-8066 obd_type: use typ_kobj.name as typ_name 17/34717/7
authorNeilBrown <neilb@suse.com>
Thu, 27 Jun 2019 21:55:26 +0000 (17:55 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 12 Jul 2019 05:21:49 +0000 (05:21 +0000)
commitd9d48aab9e3d4e00037598be5427dd196cccaad7
treed02a92f50fd662a14b7279c7c92e278efddd333a
parent2bf657c025a593270e0ccbe5e8e2299355f8cf92
LU-8066 obd_type: use typ_kobj.name as typ_name

As the kobject has a name (after kobject_add has been called),
we don't need to also store it in typ_name.
So use typ_kobj.name instead of typ_name.

This requires changing some "char *" to "const char *" as
typ.kobj.name is const.

Change-Id: Iaf0ef192e91ba1b4bd1c1b124dc1068de632d341
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-on: https://review.whamcloud.com/34717
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
lustre/include/lustre_net.h
lustre/include/obd.h
lustre/include/obd_class.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/genops.c
lustre/ptlrpc/client.c
lustre/ptlrpc/sec.c