]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: ldlm: Fix warning about missing spaces
authorAndreas Ruprecht <rupran@einserver.de>
Sun, 23 Nov 2014 13:37:50 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 20:50:27 +0000 (12:50 -0800)
checkpatch.pl complains about a number of places where spaces were
missing. This patch fixes all of these errors.

For better readability, the warning of hitting the 80 character per
line limit in line 1349 introduced by this change is ignored
deliberately.

Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_lock.c
drivers/staging/lustre/lustre/ldlm/ldlm_request.c
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c

index f987a4021ebf74ba49018ff485ca37d432757240..7674be484d40aeeb87bba2b106cae0b3509e6eeb 100644 (file)
@@ -576,7 +576,7 @@ struct ldlm_lock *__ldlm_handle2lock(const struct lustre_handle *handle,
 
        /* It's unlikely but possible that someone marked the lock as
         * destroyed after we did handle2object on it */
-       if (flags == 0 && ((lock->l_flags & LDLM_FL_DESTROYED)== 0)) {
+       if (flags == 0 && ((lock->l_flags & LDLM_FL_DESTROYED) == 0)) {
                lu_ref_add(&lock->l_reference, "handle", current);
                return lock;
        }
@@ -1345,7 +1345,7 @@ ldlm_mode_t ldlm_lock_match(struct ldlm_namespace *ns, __u64 flags,
                                  ns, type, mode, res_id->name[0],
                                  res_id->name[1],
                                  (type == LDLM_PLAIN || type == LDLM_IBITS) ?
-                                       res_id->name[2] :policy->l_extent.start,
+                                       res_id->name[2] : policy->l_extent.start,
                                  (type == LDLM_PLAIN || type == LDLM_IBITS) ?
                                        res_id->name[3] : policy->l_extent.end);
        }
index 5478e4d8e257e735e0352a6ebed855ecbdb0ccef..c117ff53002922b3b2222bf06030a37642687e7e 100644 (file)
@@ -2082,7 +2082,8 @@ static int ldlm_chain_lock_for_replay(struct ldlm_lock *lock, void *closure)
        /* we use l_pending_chain here, because it's unused on clients. */
        LASSERTF(list_empty(&lock->l_pending_chain),
                 "lock %p next %p prev %p\n",
-                lock, &lock->l_pending_chain.next,&lock->l_pending_chain.prev);
+                lock, &lock->l_pending_chain.next,
+                &lock->l_pending_chain.prev);
        /* bug 9573: don't replay locks left after eviction, or
         * bug 17614: locks being actively cancelled. Get a reference
         * on a lock so that it does not disappear under us (e.g. due to cancel)
index fb8dd680ced1e7e054eac81471dcb3557670a318..80b2e91735e5ea490597d8d79e5841317d5c7d8d 100644 (file)
@@ -93,7 +93,7 @@ int ldlm_proc_setup(void)
                  &ldlm_dump_granted_max },
                { "cancel_unused_locks_before_replay", &ldlm_rw_uint_fops,
                  &ldlm_cancel_unused_locks_before_replay },
-               { NULL }};
+               { NULL } };
        LASSERT(ldlm_ns_proc_dir == NULL);
 
        ldlm_type_proc_dir = lprocfs_register(OBD_LDLM_DEVICENAME,
@@ -385,8 +385,8 @@ int ldlm_namespace_proc_register(struct ldlm_namespace *ns)
 #undef MAX_STRING_SIZE
 #else /* CONFIG_PROC_FS */
 
-#define ldlm_namespace_proc_unregister(ns)      ({;})
-#define ldlm_namespace_proc_register(ns)       ({0;})
+#define ldlm_namespace_proc_unregister(ns)      ({; })
+#define ldlm_namespace_proc_register(ns)       ({0; })
 
 #endif /* CONFIG_PROC_FS */
 
@@ -578,7 +578,7 @@ struct ldlm_namespace *ldlm_namespace_new(struct obd_device *obd, char *name,
                return NULL;
        }
 
-       for (idx = 0;;idx++) {
+       for (idx = 0;; idx++) {
                nsd = &ldlm_ns_hash_defs[idx];
                if (nsd->nsd_type == LDLM_NS_TYPE_UNKNOWN) {
                        CERROR("Unknown type %d for ns %s\n", ns_type, name);