Skip to contentSkip to conversation

staging/lustre/osc: indent an if statement

PATCH In review Dan Carpenter 2 participants 2 messages Nov 10, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/lustre/osc: indent an if statement

We accidentally removed a tab here. Let's add it back, and some curly braces as well since this is a muti-line indent.

drivers/staging/lustre/lustre/osc/osc_lock.c +5 -3
index e337e87..bfc8d38 100644
@@ -607,9 +607,11 @@ static int osc_ldlm_glimpse_ast(struct ldlm_lock *dlmlock, void *data)
 			lvb = req_capsule_server_get(cap, &RMF_DLM_LVB);
 			result = cl_object_glimpse(env, obj, lvb);
 		}
-		if (!exp_connect_lvb_type(req->rq_export))
-		req_capsule_shrink(&req->rq_pill, &RMF_DLM_LVB,
-				   sizeof(struct ost_lvb_v1), RCL_SERVER);
+		if (!exp_connect_lvb_type(req->rq_export)) {
+			req_capsule_shrink(&req->rq_pill, &RMF_DLM_LVB,
+					   sizeof(struct ost_lvb_v1),
+					   RCL_SERVER);
+		}
 		cl_object_put(env, obj);
 	} else {
 		/*
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines

We accidentally removed a tab here. Let's add it back, and some curly braces as well since this is a muti-line indent.

Quoted 22 lines
drivers/staging/lustre/lustre/osc/osc_lock.c +5 -3
index e337e87..bfc8d38 100644
@@ -607,9 +607,11 @@ static int osc_ldlm_glimpse_ast(struct ldlm_lock *dlmlock, void *data)
 			lvb = req_capsule_server_get(cap, &RMF_DLM_LVB);
 			result = cl_object_glimpse(env, obj, lvb);
 		}
-		if (!exp_connect_lvb_type(req->rq_export))
-		req_capsule_shrink(&req->rq_pill, &RMF_DLM_LVB,
-				   sizeof(struct ost_lvb_v1), RCL_SERVER);
+		if (!exp_connect_lvb_type(req->rq_export)) {
+			req_capsule_shrink(&req->rq_pill, &RMF_DLM_LVB,
+					   sizeof(struct ost_lvb_v1),
+					   RCL_SERVER);
+		}
 		cl_object_put(env, obj);
 	} else {
 		/*