Skip to content

Commit

Permalink
staging: lustre: ldlm: Fix indentation errors for switch-case
Browse files Browse the repository at this point in the history
checkpatch complains about two indentation errors where the case
statements are on a higher indentation level than the corresponding
switch statement. This patch removes these errors.

Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
rupran authored and gregkh committed Nov 26, 2014
1 parent 43ee416 commit 0e1bbbb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
36 changes: 18 additions & 18 deletions drivers/staging/lustre/lustre/ldlm/ldlm_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1823,24 +1823,24 @@ int ldlm_run_ast_work(struct ldlm_namespace *ns, struct list_head *rpc_list,
arg->list = rpc_list;

switch (ast_type) {
case LDLM_WORK_BL_AST:
arg->type = LDLM_BL_CALLBACK;
work_ast_lock = ldlm_work_bl_ast_lock;
break;
case LDLM_WORK_CP_AST:
arg->type = LDLM_CP_CALLBACK;
work_ast_lock = ldlm_work_cp_ast_lock;
break;
case LDLM_WORK_REVOKE_AST:
arg->type = LDLM_BL_CALLBACK;
work_ast_lock = ldlm_work_revoke_ast_lock;
break;
case LDLM_WORK_GL_AST:
arg->type = LDLM_GL_CALLBACK;
work_ast_lock = ldlm_work_gl_ast_lock;
break;
default:
LBUG();
case LDLM_WORK_BL_AST:
arg->type = LDLM_BL_CALLBACK;
work_ast_lock = ldlm_work_bl_ast_lock;
break;
case LDLM_WORK_CP_AST:
arg->type = LDLM_CP_CALLBACK;
work_ast_lock = ldlm_work_cp_ast_lock;
break;
case LDLM_WORK_REVOKE_AST:
arg->type = LDLM_BL_CALLBACK;
work_ast_lock = ldlm_work_revoke_ast_lock;
break;
case LDLM_WORK_GL_AST:
arg->type = LDLM_GL_CALLBACK;
work_ast_lock = ldlm_work_gl_ast_lock;
break;
default:
LBUG();
}

/* We create a ptlrpc request set with flow control extension.
Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/lustre/lustre/ldlm/ldlm_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1419,14 +1419,14 @@ static ldlm_policy_res_t ldlm_cancel_no_wait_policy(struct ldlm_namespace *ns,
/* don't check added & count since we want to process all locks
* from unused list */
switch (lock->l_resource->lr_type) {
case LDLM_EXTENT:
case LDLM_IBITS:
if (cb && cb(lock))
break;
default:
result = LDLM_POLICY_SKIP_LOCK;
lock->l_flags |= LDLM_FL_SKIPPED;
case LDLM_EXTENT:
case LDLM_IBITS:
if (cb && cb(lock))
break;
default:
result = LDLM_POLICY_SKIP_LOCK;
lock->l_flags |= LDLM_FL_SKIPPED;
break;
}

unlock_res_and_lock(lock);
Expand Down

0 comments on commit 0e1bbbb

Please sign in to comment.