Commit 5fb0acb4 authored by Somya Anand's avatar Somya Anand Committed by Greg Kroah-Hartman

Staging: lustre: Convert macro class_export_rpc_dec into static inline function

This patch converts the macro class_export_rpc_dec into static inline
function. This is possible because the types of arguments at all the call
sites are same. So, the type of parameter is compatible with the types of
the arguments at all of the call sites.
Signed-off-by: default avatarSomya Anand <somyaanand214@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 28b9d6f1
......@@ -229,13 +229,13 @@ static inline void class_export_rpc_inc(struct obd_export *exp)
(exp), atomic_read(&(exp)->exp_rpc_count));
}
#define class_export_rpc_dec(exp) \
({ \
LASSERT_ATOMIC_POS(&exp->exp_rpc_count); \
atomic_dec(&(exp)->exp_rpc_count); \
CDEBUG(D_INFO, "RPC PUTting export %p : new rpc_count %d\n", \
(exp), atomic_read(&(exp)->exp_rpc_count)); \
})
static inline void class_export_rpc_dec(struct obd_export *exp)
{
LASSERT_ATOMIC_POS(&exp->exp_rpc_count);
atomic_dec(&(exp)->exp_rpc_count);
CDEBUG(D_INFO, "RPC PUTting export %p : new rpc_count %d\n",
(exp), atomic_read(&(exp)->exp_rpc_count));
}
#define class_export_lock_get(exp, lock) \
({ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment