提交 a90a2917 编写于 作者: S Shraddha Barke 提交者: Greg Kroah-Hartman

Staging: lustre: obdclass: cl_lock: Declare as static

Declare cl_lock_intransit and cl_lock_extransit as static since they
are used only in this particular file.
Signed-off-by: NShraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a9bda311
...@@ -403,7 +403,7 @@ static struct cl_lock *cl_lock_alloc(const struct lu_env *env, ...@@ -403,7 +403,7 @@ static struct cl_lock *cl_lock_alloc(const struct lu_env *env,
* \post state: CLS_INTRANSIT * \post state: CLS_INTRANSIT
* \see CLS_INTRANSIT * \see CLS_INTRANSIT
*/ */
enum cl_lock_state cl_lock_intransit(const struct lu_env *env, static enum cl_lock_state cl_lock_intransit(const struct lu_env *env,
struct cl_lock *lock) struct cl_lock *lock)
{ {
enum cl_lock_state state = lock->cll_state; enum cl_lock_state state = lock->cll_state;
...@@ -418,12 +418,11 @@ enum cl_lock_state cl_lock_intransit(const struct lu_env *env, ...@@ -418,12 +418,11 @@ enum cl_lock_state cl_lock_intransit(const struct lu_env *env,
cl_lock_hold_add(env, lock, "intransit", current); cl_lock_hold_add(env, lock, "intransit", current);
return state; return state;
} }
EXPORT_SYMBOL(cl_lock_intransit);
/** /**
* Exit the intransit state and restore the lock state to the original state * Exit the intransit state and restore the lock state to the original state
*/ */
void cl_lock_extransit(const struct lu_env *env, struct cl_lock *lock, static void cl_lock_extransit(const struct lu_env *env, struct cl_lock *lock,
enum cl_lock_state state) enum cl_lock_state state)
{ {
LASSERT(cl_lock_is_mutexed(lock)); LASSERT(cl_lock_is_mutexed(lock));
...@@ -435,7 +434,6 @@ void cl_lock_extransit(const struct lu_env *env, struct cl_lock *lock, ...@@ -435,7 +434,6 @@ void cl_lock_extransit(const struct lu_env *env, struct cl_lock *lock,
cl_lock_state_set(env, lock, state); cl_lock_state_set(env, lock, state);
cl_lock_unhold(env, lock, "intransit", current); cl_lock_unhold(env, lock, "intransit", current);
} }
EXPORT_SYMBOL(cl_lock_extransit);
/** /**
* Checking whether the lock is intransit state * Checking whether the lock is intransit state
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册