Commit e9e2fa69 authored by Greg Donald's avatar Greg Donald Committed by Greg Kroah-Hartman

drivers: staging: lustre: Fix 'that open brace { should be on the previous line' errors

Fix checkpatch.pl 'that open brace { should be on the previous line' errors
Signed-off-by: default avatarGreg Donald <gdonald@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 557732ad
...@@ -1205,8 +1205,7 @@ int ldlm_pools_recalc(ldlm_side_t client) ...@@ -1205,8 +1205,7 @@ int ldlm_pools_recalc(ldlm_side_t client)
* The rest is given to greedy namespaces. * The rest is given to greedy namespaces.
*/ */
list_for_each_entry(ns, ldlm_namespace_list(client), list_for_each_entry(ns, ldlm_namespace_list(client),
ns_list_chain) ns_list_chain) {
{
if (!equal && ns->ns_appetite != LDLM_NAMESPACE_GREEDY) if (!equal && ns->ns_appetite != LDLM_NAMESPACE_GREEDY)
continue; continue;
......
...@@ -1371,8 +1371,7 @@ cfs_hash_lookup(struct cfs_hash *hs, const void *key) ...@@ -1371,8 +1371,7 @@ cfs_hash_lookup(struct cfs_hash *hs, const void *key)
EXPORT_SYMBOL(cfs_hash_lookup); EXPORT_SYMBOL(cfs_hash_lookup);
static void static void
cfs_hash_for_each_enter(struct cfs_hash *hs) cfs_hash_for_each_enter(struct cfs_hash *hs) {
{
LASSERT(!cfs_hash_is_exiting(hs)); LASSERT(!cfs_hash_is_exiting(hs));
if (!cfs_hash_with_rehash(hs)) if (!cfs_hash_with_rehash(hs))
...@@ -1397,8 +1396,7 @@ cfs_hash_for_each_enter(struct cfs_hash *hs) ...@@ -1397,8 +1396,7 @@ cfs_hash_for_each_enter(struct cfs_hash *hs)
} }
static void static void
cfs_hash_for_each_exit(struct cfs_hash *hs) cfs_hash_for_each_exit(struct cfs_hash *hs) {
{
int remained; int remained;
int bits; int bits;
...@@ -1429,8 +1427,7 @@ cfs_hash_for_each_exit(struct cfs_hash *hs) ...@@ -1429,8 +1427,7 @@ cfs_hash_for_each_exit(struct cfs_hash *hs)
*/ */
static __u64 static __u64
cfs_hash_for_each_tight(struct cfs_hash *hs, cfs_hash_for_each_cb_t func, cfs_hash_for_each_tight(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
void *data, int remove_safe) void *data, int remove_safe) {
{
struct hlist_node *hnode; struct hlist_node *hnode;
struct hlist_node *pos; struct hlist_node *pos;
struct cfs_hash_bd bd; struct cfs_hash_bd bd;
...@@ -1523,8 +1520,7 @@ EXPORT_SYMBOL(cfs_hash_for_each); ...@@ -1523,8 +1520,7 @@ EXPORT_SYMBOL(cfs_hash_for_each);
void void
cfs_hash_for_each_safe(struct cfs_hash *hs, cfs_hash_for_each_safe(struct cfs_hash *hs,
cfs_hash_for_each_cb_t func, void *data) cfs_hash_for_each_cb_t func, void *data) {
{
cfs_hash_for_each_tight(hs, func, data, 1); cfs_hash_for_each_tight(hs, func, data, 1);
} }
EXPORT_SYMBOL(cfs_hash_for_each_safe); EXPORT_SYMBOL(cfs_hash_for_each_safe);
...@@ -1572,8 +1568,8 @@ EXPORT_SYMBOL(cfs_hash_size_get); ...@@ -1572,8 +1568,8 @@ EXPORT_SYMBOL(cfs_hash_size_get);
* two cases, so iteration has to be stopped on change. * two cases, so iteration has to be stopped on change.
*/ */
static int static int
cfs_hash_for_each_relax(struct cfs_hash *hs, cfs_hash_for_each_cb_t func, void *data) cfs_hash_for_each_relax(struct cfs_hash *hs, cfs_hash_for_each_cb_t func,
{ void *data) {
struct hlist_node *hnode; struct hlist_node *hnode;
struct hlist_node *tmp; struct hlist_node *tmp;
struct cfs_hash_bd bd; struct cfs_hash_bd bd;
...@@ -1634,8 +1630,7 @@ cfs_hash_for_each_relax(struct cfs_hash *hs, cfs_hash_for_each_cb_t func, void * ...@@ -1634,8 +1630,7 @@ cfs_hash_for_each_relax(struct cfs_hash *hs, cfs_hash_for_each_cb_t func, void *
int int
cfs_hash_for_each_nolock(struct cfs_hash *hs, cfs_hash_for_each_nolock(struct cfs_hash *hs,
cfs_hash_for_each_cb_t func, void *data) cfs_hash_for_each_cb_t func, void *data) {
{
if (cfs_hash_with_no_lock(hs) || if (cfs_hash_with_no_lock(hs) ||
cfs_hash_with_rehash_key(hs) || cfs_hash_with_rehash_key(hs) ||
!cfs_hash_with_no_itemref(hs)) !cfs_hash_with_no_itemref(hs))
...@@ -1667,8 +1662,7 @@ EXPORT_SYMBOL(cfs_hash_for_each_nolock); ...@@ -1667,8 +1662,7 @@ EXPORT_SYMBOL(cfs_hash_for_each_nolock);
*/ */
int int
cfs_hash_for_each_empty(struct cfs_hash *hs, cfs_hash_for_each_empty(struct cfs_hash *hs,
cfs_hash_for_each_cb_t func, void *data) cfs_hash_for_each_cb_t func, void *data) {
{
unsigned i = 0; unsigned i = 0;
if (cfs_hash_with_no_lock(hs)) if (cfs_hash_with_no_lock(hs))
...@@ -1726,8 +1720,7 @@ EXPORT_SYMBOL(cfs_hash_hlist_for_each); ...@@ -1726,8 +1720,7 @@ EXPORT_SYMBOL(cfs_hash_hlist_for_each);
*/ */
void void
cfs_hash_for_each_key(struct cfs_hash *hs, const void *key, cfs_hash_for_each_key(struct cfs_hash *hs, const void *key,
cfs_hash_for_each_cb_t func, void *data) cfs_hash_for_each_cb_t func, void *data) {
{
struct hlist_node *hnode; struct hlist_node *hnode;
struct cfs_hash_bd bds[2]; struct cfs_hash_bd bds[2];
unsigned i; unsigned i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment