Commit 9b79ca85 authored by Lisa Nguyen's avatar Lisa Nguyen Committed by Greg Kroah-Hartman

staging/lustre/lnet: Move open braces to previous lines in lib-move.c

Move open braces to previous lines in lib-move.c to meet kernel
coding standards.
Signed-off-by: default avatarLisa Nguyen <lisa@xenapiadmin.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent af66a6e2
...@@ -82,8 +82,7 @@ lnet_fail_nid(lnet_nid_t nid, unsigned int threshold) ...@@ -82,8 +82,7 @@ lnet_fail_nid(lnet_nid_t nid, unsigned int threshold)
if (tp->tp_threshold == 0 || /* needs culling anyway */ if (tp->tp_threshold == 0 || /* needs culling anyway */
nid == LNET_NID_ANY || /* removing all entries */ nid == LNET_NID_ANY || /* removing all entries */
tp->tp_nid == nid) /* matched this one */ tp->tp_nid == nid) { /* matched this one */
{
list_del(&tp->tp_list); list_del(&tp->tp_list);
list_add(&tp->tp_list, &cull); list_add(&tp->tp_list, &cull);
} }
...@@ -1814,8 +1813,7 @@ lnet_parse(lnet_ni_t *ni, lnet_hdr_t *hdr, lnet_nid_t from_nid, ...@@ -1814,8 +1813,7 @@ lnet_parse(lnet_ni_t *ni, lnet_hdr_t *hdr, lnet_nid_t from_nid,
* call back lnd_recv() come what may... */ * call back lnd_recv() come what may... */
if (!list_empty(&the_lnet.ln_test_peers) && /* normally we don't */ if (!list_empty(&the_lnet.ln_test_peers) && /* normally we don't */
fail_peer(src_nid, 0)) /* shall we now? */ fail_peer(src_nid, 0)) { /* shall we now? */
{
CERROR("%s, src %s: Dropping %s to simulate failure\n", CERROR("%s, src %s: Dropping %s to simulate failure\n",
libcfs_nid2str(from_nid), libcfs_nid2str(src_nid), libcfs_nid2str(from_nid), libcfs_nid2str(src_nid),
lnet_msgtyp2str(type)); lnet_msgtyp2str(type));
...@@ -2051,8 +2049,7 @@ LNetPut(lnet_nid_t self, lnet_handle_md_t mdh, lnet_ack_req_t ack, ...@@ -2051,8 +2049,7 @@ LNetPut(lnet_nid_t self, lnet_handle_md_t mdh, lnet_ack_req_t ack,
LASSERT(the_lnet.ln_refcount > 0); LASSERT(the_lnet.ln_refcount > 0);
if (!list_empty(&the_lnet.ln_test_peers) && /* normally we don't */ if (!list_empty(&the_lnet.ln_test_peers) && /* normally we don't */
fail_peer(target.nid, 1)) /* shall we now? */ fail_peer(target.nid, 1)) { /* shall we now? */
{
CERROR("Dropping PUT to %s: simulated failure\n", CERROR("Dropping PUT to %s: simulated failure\n",
libcfs_id2str(target)); libcfs_id2str(target));
return -EIO; return -EIO;
...@@ -2251,8 +2248,7 @@ LNetGet(lnet_nid_t self, lnet_handle_md_t mdh, ...@@ -2251,8 +2248,7 @@ LNetGet(lnet_nid_t self, lnet_handle_md_t mdh,
LASSERT(the_lnet.ln_refcount > 0); LASSERT(the_lnet.ln_refcount > 0);
if (!list_empty(&the_lnet.ln_test_peers) && /* normally we don't */ if (!list_empty(&the_lnet.ln_test_peers) && /* normally we don't */
fail_peer(target.nid, 1)) /* shall we now? */ fail_peer(target.nid, 1)) { /* shall we now? */
{
CERROR("Dropping GET to %s: simulated failure\n", CERROR("Dropping GET to %s: simulated failure\n",
libcfs_id2str(target)); libcfs_id2str(target));
return -EIO; return -EIO;
......
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