Commit e05e02e4 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: lustre: remove RETURN_EXIT macro

We have a kernel-wide function tracing system, so use that instead of
rolling a custom one just for one filesystem.

Cc: Peng Tao <tao.peng@emc.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 29aaf496
...@@ -314,12 +314,6 @@ do { \ ...@@ -314,12 +314,6 @@ do { \
CDEBUG(D_TRACE, "Process leaving\n"); \ CDEBUG(D_TRACE, "Process leaving\n"); \
} while(0) } while(0)
#define RETURN_EXIT \
do { \
EXIT; \
return; \
} while (0)
extern int libcfs_debug_msg(struct libcfs_debug_msg_data *msgdata, extern int libcfs_debug_msg(struct libcfs_debug_msg_data *msgdata,
const char *format1, ...) const char *format1, ...)
__attribute__ ((format (printf, 2, 3))); __attribute__ ((format (printf, 2, 3)));
......
...@@ -63,7 +63,7 @@ static void ll_release(struct dentry *de) ...@@ -63,7 +63,7 @@ static void ll_release(struct dentry *de)
LASSERT(de != NULL); LASSERT(de != NULL);
lld = ll_d2d(de); lld = ll_d2d(de);
if (lld == NULL) /* NFS copies the de->d_op methods (bug 4655) */ if (lld == NULL) /* NFS copies the de->d_op methods (bug 4655) */
RETURN_EXIT; return;
if (lld->lld_it) { if (lld->lld_it) {
ll_intent_release(lld->lld_it); ll_intent_release(lld->lld_it);
......
...@@ -516,7 +516,7 @@ static void ll_sai_put(struct ll_statahead_info *sai) ...@@ -516,7 +516,7 @@ static void ll_sai_put(struct ll_statahead_info *sai)
/* It is race case, the interpret callback just hold /* It is race case, the interpret callback just hold
* a reference count */ * a reference count */
spin_unlock(&lli->lli_sa_lock); spin_unlock(&lli->lli_sa_lock);
RETURN_EXIT; return;
} }
LASSERT(lli->lli_opendir_key == NULL); LASSERT(lli->lli_opendir_key == NULL);
...@@ -564,7 +564,7 @@ static void ll_agl_trigger(struct inode *inode, struct ll_statahead_info *sai) ...@@ -564,7 +564,7 @@ static void ll_agl_trigger(struct inode *inode, struct ll_statahead_info *sai)
if (is_omitted_entry(sai, index + 1)) { if (is_omitted_entry(sai, index + 1)) {
lli->lli_agl_index = 0; lli->lli_agl_index = 0;
iput(inode); iput(inode);
RETURN_EXIT; return;
} }
/* Someone is in glimpse (sync or async), do nothing. */ /* Someone is in glimpse (sync or async), do nothing. */
...@@ -572,7 +572,7 @@ static void ll_agl_trigger(struct inode *inode, struct ll_statahead_info *sai) ...@@ -572,7 +572,7 @@ static void ll_agl_trigger(struct inode *inode, struct ll_statahead_info *sai)
if (rc == 0) { if (rc == 0) {
lli->lli_agl_index = 0; lli->lli_agl_index = 0;
iput(inode); iput(inode);
RETURN_EXIT; return;
} }
/* /*
...@@ -593,7 +593,7 @@ static void ll_agl_trigger(struct inode *inode, struct ll_statahead_info *sai) ...@@ -593,7 +593,7 @@ static void ll_agl_trigger(struct inode *inode, struct ll_statahead_info *sai)
up_write(&lli->lli_glimpse_sem); up_write(&lli->lli_glimpse_sem);
lli->lli_agl_index = 0; lli->lli_agl_index = 0;
iput(inode); iput(inode);
RETURN_EXIT; return;
} }
CDEBUG(D_READA, "Handling (init) async glimpse: inode = " CDEBUG(D_READA, "Handling (init) async glimpse: inode = "
...@@ -628,7 +628,7 @@ static void ll_post_statahead(struct ll_statahead_info *sai) ...@@ -628,7 +628,7 @@ static void ll_post_statahead(struct ll_statahead_info *sai)
spin_lock(&lli->lli_sa_lock); spin_lock(&lli->lli_sa_lock);
if (unlikely(sa_received_empty(sai))) { if (unlikely(sa_received_empty(sai))) {
spin_unlock(&lli->lli_sa_lock); spin_unlock(&lli->lli_sa_lock);
RETURN_EXIT; return;
} }
entry = sa_first_received_entry(sai); entry = sa_first_received_entry(sai);
atomic_inc(&entry->se_refcount); atomic_inc(&entry->se_refcount);
...@@ -930,7 +930,7 @@ static void ll_statahead_one(struct dentry *parent, const char* entry_name, ...@@ -930,7 +930,7 @@ static void ll_statahead_one(struct dentry *parent, const char* entry_name,
entry = ll_sa_entry_alloc(sai, sai->sai_index, entry_name, entry = ll_sa_entry_alloc(sai, sai->sai_index, entry_name,
entry_name_len); entry_name_len);
if (IS_ERR(entry)) if (IS_ERR(entry))
RETURN_EXIT; return;
dentry = d_lookup(parent, &entry->se_qstr); dentry = d_lookup(parent, &entry->se_qstr);
if (!dentry) { if (!dentry) {
...@@ -1038,7 +1038,7 @@ static void ll_start_agl(struct dentry *parent, struct ll_statahead_info *sai) ...@@ -1038,7 +1038,7 @@ static void ll_start_agl(struct dentry *parent, struct ll_statahead_info *sai)
if (IS_ERR(task)) { if (IS_ERR(task)) {
CERROR("can't start ll_agl thread, rc: %ld\n", PTR_ERR(task)); CERROR("can't start ll_agl thread, rc: %ld\n", PTR_ERR(task));
thread_set_flags(thread, SVC_STOPPED); thread_set_flags(thread, SVC_STOPPED);
RETURN_EXIT; return;
} }
l_wait_event(thread->t_ctl_waitq, l_wait_event(thread->t_ctl_waitq,
......
...@@ -742,7 +742,6 @@ static void lov_io_fsync_end(const struct lu_env *env, ...@@ -742,7 +742,6 @@ static void lov_io_fsync_end(const struct lu_env *env,
if (subio->ci_result == 0) if (subio->ci_result == 0)
*written += subio->u.ci_fsync.fi_nr_written; *written += subio->u.ci_fsync.fi_nr_written;
} }
RETURN_EXIT;
} }
static const struct cl_io_operations lov_io_ops = { static const struct cl_io_operations lov_io_ops = {
......
...@@ -561,7 +561,7 @@ static void mgc_requeue_add(struct config_llog_data *cld) ...@@ -561,7 +561,7 @@ static void mgc_requeue_add(struct config_llog_data *cld)
mutex_lock(&cld->cld_lock); mutex_lock(&cld->cld_lock);
if (cld->cld_stopping || cld->cld_lostlock) { if (cld->cld_stopping || cld->cld_lostlock) {
mutex_unlock(&cld->cld_lock); mutex_unlock(&cld->cld_lock);
RETURN_EXIT; return;
} }
/* this refcount will be released in mgc_requeue_thread. */ /* this refcount will be released in mgc_requeue_thread. */
config_log_get(cld); config_log_get(cld);
......
...@@ -344,7 +344,7 @@ static void osc_lock_lvb_update(const struct lu_env *env, struct osc_lock *olck, ...@@ -344,7 +344,7 @@ static void osc_lock_lvb_update(const struct lu_env *env, struct osc_lock *olck,
unsigned valid; unsigned valid;
if (!(olck->ols_flags & LDLM_FL_LVB_READY)) if (!(olck->ols_flags & LDLM_FL_LVB_READY))
RETURN_EXIT; return;
lvb = &olck->ols_lvb; lvb = &olck->ols_lvb;
obj = olck->ols_cl.cls_obj; obj = olck->ols_cl.cls_obj;
......
...@@ -158,11 +158,6 @@ static void nrs_policy_stop_primary(struct ptlrpc_nrs *nrs) ...@@ -158,11 +158,6 @@ static void nrs_policy_stop_primary(struct ptlrpc_nrs *nrs)
struct ptlrpc_nrs_policy *tmp = nrs->nrs_policy_primary; struct ptlrpc_nrs_policy *tmp = nrs->nrs_policy_primary;
if (tmp == NULL) { if (tmp == NULL) {
/**
* XXX: This should really be RETURN_EXIT, but the latter does
* not currently print anything out, and possibly should be
* fixed to do so.
*/
EXIT; EXIT;
return; return;
} }
......
...@@ -1043,7 +1043,7 @@ static void ptlrpc_update_export_timer(struct obd_export *exp, long extra_delay) ...@@ -1043,7 +1043,7 @@ static void ptlrpc_update_export_timer(struct obd_export *exp, long extra_delay)
/* Do not pay attention on 1sec or smaller renewals. */ /* Do not pay attention on 1sec or smaller renewals. */
new_time = cfs_time_current_sec() + extra_delay; new_time = cfs_time_current_sec() + extra_delay;
if (exp->exp_last_request_time + 1 /*second */ >= new_time) if (exp->exp_last_request_time + 1 /*second */ >= new_time)
RETURN_EXIT; return;
exp->exp_last_request_time = new_time; exp->exp_last_request_time = new_time;
CDEBUG(D_HA, "updating export %s at "CFS_TIME_T" exp %p\n", CDEBUG(D_HA, "updating export %s at "CFS_TIME_T" exp %p\n",
...@@ -1058,7 +1058,7 @@ static void ptlrpc_update_export_timer(struct obd_export *exp, long extra_delay) ...@@ -1058,7 +1058,7 @@ static void ptlrpc_update_export_timer(struct obd_export *exp, long extra_delay)
if (list_empty(&exp->exp_obd_chain_timed)) { if (list_empty(&exp->exp_obd_chain_timed)) {
/* this one is not timed */ /* this one is not timed */
spin_unlock(&exp->exp_obd->obd_dev_lock); spin_unlock(&exp->exp_obd->obd_dev_lock);
RETURN_EXIT; return;
} }
list_move_tail(&exp->exp_obd_chain_timed, list_move_tail(&exp->exp_obd_chain_timed,
......
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