From 7404a3e355eeed661c6ee669c05d9e6a24ed592f Mon Sep 17 00:00:00 2001 From: Mr NeilBrown Date: Fri, 23 Aug 2019 16:10:32 +1000 Subject: [PATCH 1/1] LU-10467 fid: style cleanups in seq_client_alloc_meta() Prior to code changes in seq_client_alloc_meta, make indents consistently tabs, and change "env != NULL" to "env" Test-Parameters: trivial Signed-off-by: Mr NeilBrown Change-Id: If72d737f843a5f6e56ef82aabb7a779b358f4382 Reviewed-on: https://review.whamcloud.com/35963 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Arshad Hussain Reviewed-by: Shaun Tancheff Reviewed-by: Oleg Drokin --- lustre/fid/fid_request.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lustre/fid/fid_request.c b/lustre/fid/fid_request.c index 93f6402..a8ca087 100644 --- a/lustre/fid/fid_request.c +++ b/lustre/fid/fid_request.c @@ -178,13 +178,13 @@ int seq_client_alloc_super(struct lu_client_seq *seq, static int seq_client_alloc_meta(const struct lu_env *env, struct lu_client_seq *seq) { - int rc; - ENTRY; + int rc; + ENTRY; - if (seq->lcs_srv) { + if (seq->lcs_srv) { #ifdef HAVE_SEQ_SERVER - LASSERT(env != NULL); - rc = seq_server_alloc_meta(seq->lcs_srv, &seq->lcs_space, env); + LASSERT(env); + rc = seq_server_alloc_meta(seq->lcs_srv, &seq->lcs_space, env); #else rc = 0; #endif @@ -208,9 +208,9 @@ static int seq_client_alloc_meta(const struct lu_env *env, l_wait_event(waitq, 0, &lwi); } } while (rc == -EINPROGRESS || rc == -EAGAIN); - } + } - RETURN(rc); + RETURN(rc); } /* Allocate new sequence for client. */ -- 1.8.3.1