Whamcloud - gitweb
LU-10467 fid: style cleanups in seq_client_alloc_meta() 63/35963/4
authorMr NeilBrown <neilb@suse.com>
Fri, 23 Aug 2019 06:10:32 +0000 (16:10 +1000)
committerOleg Drokin <green@whamcloud.com>
Fri, 20 Sep 2019 07:53:40 +0000 (07:53 +0000)
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 <neilb@suse.com>
Change-Id: If72d737f843a5f6e56ef82aabb7a779b358f4382
Reviewed-on: https://review.whamcloud.com/35963
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/fid/fid_request.c

index 93f6402..a8ca087 100644 (file)
@@ -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. */