Whamcloud - gitweb
LU-9855 include: replace OBD_CHECK_DEV by obd_check_dev 01/33101/2
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Sat, 1 Sep 2018 19:03:55 +0000 (15:03 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Sep 2018 16:52:37 +0000 (16:52 +0000)
commit32dbb80b0dcf6774fcab1f4d79bfc119d27a25a2
tree8a6b1614e8c95e9dd7bb8c9ab9ec3e225f82e161
parent43e4befc2efa5a1623f4c0981fff67a0e41576aa
LU-9855 include: replace OBD_CHECK_DEV by obd_check_dev

Static inline functions are preferred over macros. Hence, the function
obd_check_dev was introduced. obd_check_dev replaces the macro
OBD_CHECK_DEV. All functions that call obd_check_dev store the return
values and return them if they represent an error code.

Some of the changes were carried out manually while others were done
using coccinelle.

Linux-commit: 4ca1b8fbe609b7c52aeaa78a5f4678efcc9b8d73

Test-Parameters: trivial

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Change-Id: Iad96cc151a711892d950bd2ccaa93b13d6b23ae5
Reviewed-on: https://review.whamcloud.com/33101
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Ben Evans <bevans@cray.com>
lustre/include/obd_class.h