diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 20:58:42 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 21:53:30 -0500 |
commit | a18c4bc3ea3c23f658655b1eee4f62cb71d51efd (patch) | |
tree | 573ab87dd9826f1956bb3a17e481842284ad8321 /net/tipc/bearer.c | |
parent | 7f9ab6ac2e79b9658eba7c8e3ad8a4392d308057 (diff) |
tipc: rename struct link* to struct tipc_link*
This converts the following:
struct link -> struct tipc_link
struct link_req -> struct tipc_link_req
struct link_name -> struct tipc_link_name
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/bearer.c')
-rw-r--r-- | net/tipc/bearer.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index cddec3d9ee17..eab4201d4312 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c | |||
@@ -318,7 +318,7 @@ void tipc_bearer_remove_dest(struct tipc_bearer *b_ptr, u32 dest) | |||
318 | static int bearer_push(struct tipc_bearer *b_ptr) | 318 | static int bearer_push(struct tipc_bearer *b_ptr) |
319 | { | 319 | { |
320 | u32 res = 0; | 320 | u32 res = 0; |
321 | struct link *ln, *tln; | 321 | struct tipc_link *ln, *tln; |
322 | 322 | ||
323 | if (b_ptr->blocked) | 323 | if (b_ptr->blocked) |
324 | return 0; | 324 | return 0; |
@@ -364,7 +364,8 @@ void tipc_continue(struct tipc_bearer *b_ptr) | |||
364 | * bearer.lock is busy | 364 | * bearer.lock is busy |
365 | */ | 365 | */ |
366 | 366 | ||
367 | static void tipc_bearer_schedule_unlocked(struct tipc_bearer *b_ptr, struct link *l_ptr) | 367 | static void tipc_bearer_schedule_unlocked(struct tipc_bearer *b_ptr, |
368 | struct tipc_link *l_ptr) | ||
368 | { | 369 | { |
369 | list_move_tail(&l_ptr->link_list, &b_ptr->cong_links); | 370 | list_move_tail(&l_ptr->link_list, &b_ptr->cong_links); |
370 | } | 371 | } |
@@ -377,7 +378,7 @@ static void tipc_bearer_schedule_unlocked(struct tipc_bearer *b_ptr, struct link | |||
377 | * bearer.lock is free | 378 | * bearer.lock is free |
378 | */ | 379 | */ |
379 | 380 | ||
380 | void tipc_bearer_schedule(struct tipc_bearer *b_ptr, struct link *l_ptr) | 381 | void tipc_bearer_schedule(struct tipc_bearer *b_ptr, struct tipc_link *l_ptr) |
381 | { | 382 | { |
382 | spin_lock_bh(&b_ptr->lock); | 383 | spin_lock_bh(&b_ptr->lock); |
383 | tipc_bearer_schedule_unlocked(b_ptr, l_ptr); | 384 | tipc_bearer_schedule_unlocked(b_ptr, l_ptr); |
@@ -390,7 +391,8 @@ void tipc_bearer_schedule(struct tipc_bearer *b_ptr, struct link *l_ptr) | |||
390 | * and if there is, try to resolve it before returning. | 391 | * and if there is, try to resolve it before returning. |
391 | * 'tipc_net_lock' is read_locked when this function is called | 392 | * 'tipc_net_lock' is read_locked when this function is called |
392 | */ | 393 | */ |
393 | int tipc_bearer_resolve_congestion(struct tipc_bearer *b_ptr, struct link *l_ptr) | 394 | int tipc_bearer_resolve_congestion(struct tipc_bearer *b_ptr, |
395 | struct tipc_link *l_ptr) | ||
394 | { | 396 | { |
395 | int res = 1; | 397 | int res = 1; |
396 | 398 | ||
@@ -409,7 +411,7 @@ int tipc_bearer_resolve_congestion(struct tipc_bearer *b_ptr, struct link *l_ptr | |||
409 | * tipc_bearer_congested - determines if bearer is currently congested | 411 | * tipc_bearer_congested - determines if bearer is currently congested |
410 | */ | 412 | */ |
411 | 413 | ||
412 | int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr) | 414 | int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct tipc_link *l_ptr) |
413 | { | 415 | { |
414 | if (unlikely(b_ptr->blocked)) | 416 | if (unlikely(b_ptr->blocked)) |
415 | return 1; | 417 | return 1; |
@@ -544,8 +546,8 @@ exit: | |||
544 | int tipc_block_bearer(const char *name) | 546 | int tipc_block_bearer(const char *name) |
545 | { | 547 | { |
546 | struct tipc_bearer *b_ptr = NULL; | 548 | struct tipc_bearer *b_ptr = NULL; |
547 | struct link *l_ptr; | 549 | struct tipc_link *l_ptr; |
548 | struct link *temp_l_ptr; | 550 | struct tipc_link *temp_l_ptr; |
549 | 551 | ||
550 | read_lock_bh(&tipc_net_lock); | 552 | read_lock_bh(&tipc_net_lock); |
551 | b_ptr = tipc_bearer_find(name); | 553 | b_ptr = tipc_bearer_find(name); |
@@ -579,8 +581,8 @@ int tipc_block_bearer(const char *name) | |||
579 | 581 | ||
580 | static void bearer_disable(struct tipc_bearer *b_ptr) | 582 | static void bearer_disable(struct tipc_bearer *b_ptr) |
581 | { | 583 | { |
582 | struct link *l_ptr; | 584 | struct tipc_link *l_ptr; |
583 | struct link *temp_l_ptr; | 585 | struct tipc_link *temp_l_ptr; |
584 | 586 | ||
585 | info("Disabling bearer <%s>\n", b_ptr->name); | 587 | info("Disabling bearer <%s>\n", b_ptr->name); |
586 | spin_lock_bh(&b_ptr->lock); | 588 | spin_lock_bh(&b_ptr->lock); |