ocfs2: Clean up errors in dlmunlock.c
PATCH 1/1 ocfs2: Clean up errors in dlmunlock.c
Fix the following errors reported by checkpatch:
ERROR: spaces required around that '<' (ctx:VxV)
ERROR: spaces required around that '=' (ctx:VxV)
ERROR: space required before that '&' (ctx:OxV)
ERROR: spaces required around that '==' (ctx:VxV)
ERROR: spaces required around that ':' (ctx:VxE)
Signed-off-by KaiLong Wang <[email protected]>
--- fs/ocfs2/dlm/dlmunlock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
fs/ocfs2/dlm/dlmunlock.c +4 -4
@@ -184,8 +184,8 @@ static enum dlm_status dlmunlock_common(struct dlm_ctxt *dlm,mlog (0 ,"%s:%.*s: clearing actions, %s\n" , dlm->name, res->lockname.len, res->lockname.name, - status==DLM_RECOVERING ?"recovering" : - (status==DLM_MIGRATING ?"migrating" : + status ==DLM_RECOVERING ?"recovering" : + (status ==DLM_MIGRATING ?"migrating" : (status ==DLM_FORWARD ?"forward" :"nolockmanager" ))); actions =0 ;
@@ -436,7 +436,7 @@ int dlm_unlock_lock_handler(struct o2net_msg *msg, u32 len, void *data, goto not_found; } - queue=&res->granted; + queue = &res->granted;spin_lock (&res->spinlock);if (res->state &DLM_LOCK_RES_RECOVERING ) {spin_unlock (&res->spinlock);
@@ -459,7 +459,7 @@ int dlm_unlock_lock_handler(struct o2net_msg *msg, u32 len, void *data, goto leave; } -for (i=0 ; i<3 ; i++) { +for (i =0 ; i <3 ; i++) {list_for_each_entry (iter, queue, list) {if (iter->ml.cookie == unlock->cookie && iter->ml.node == unlock->node_idx) {
Signature · 1 line
2.17.1