staging: lustre: include: replace OBD_CHECK_DEV_ACTIVE by obd_check_dev_active
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Thu, 2 Apr 2015 18:00:24 +0000 (20:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 09:18:14 +0000 (11:18 +0200)
commitf36b6553e0ffe2c06ffc025b23c13967754ce7f4
treebf265507e88c83b33432d3730a9a73d9dab6ac10
parent4ca1b8fbe609b7c52aeaa78a5f4678efcc9b8d73
staging: lustre: include: replace OBD_CHECK_DEV_ACTIVE by obd_check_dev_active

Static inline functions are preferred over macros. The inline function
obd_check_dev_active is introduced to replace OBD_CHECK_DEV_ACTIVE.
All functions that call obd_check_dev_active 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.

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_class.h