mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-01 10:13:58 +08:00
staging: lustre: ldlm: Fix warning about missing spaces
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>
This commit is contained in:
parent
e7ddc48c10
commit
43ee4160bb
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user