Whamcloud - gitweb
LU-11051 obd: remove obd_{get,put}ref() 29/32529/3
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 17 May 2018 16:36:23 +0000 (11:36 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 14 Jun 2018 03:57:02 +0000 (03:57 +0000)
commit0aeb8c251e852784451140f137faa361e04bfcc5
treee5d4b69c2d27042c350033bea86cf0031711a473
parent18fa5cc885539b7beb79fed5061b0fffbb8fa090
LU-11051 obd: remove obd_{get,put}ref()

obd_getref() and obd_putref() are only used in the lov layer and only
implemented by the lov layer. So they can be removed in favor of
direct calls. Rename lov_{get,put}ref() to lov_tgts_{get,put}ref()
since they do not manage references on the lov device but on its
targets array.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I0f48eaf4bb42b81b2155c599f361a17dd7bb1ae3
Reviewed-on: https://review.whamcloud.com/32529
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd.h
lustre/include/obd_class.h
lustre/lov/lov_dev.c
lustre/lov/lov_internal.h
lustre/lov/lov_obd.c
lustre/lov/lov_pool.c
lustre/lov/lov_request.c
lustre/obdclass/lprocfs_status_server.c