tipc: convert tipc_bearers array to pointer list

As part of the effort to introduce RCU protection for the bearer
list, we first need to change it to a list of pointers.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
Ying Xue
2014-03-27 12:54:33 +08:00
提交者 David S. Miller
父节点 78dfb789b6
当前提交 3874ccbba8
修改 3 个文件,包含 38 行新增15 行删除

查看文件

@@ -668,9 +668,8 @@ void tipc_bcbearer_sort(void)
memset(bp_temp, 0, sizeof(bcbearer->bpairs_temp));
for (b_index = 0; b_index < MAX_BEARERS; b_index++) {
struct tipc_bearer *b = &tipc_bearers[b_index];
if (!b->active || !b->nodes.count)
struct tipc_bearer *b = bearer_list[b_index];
if (!b || !b->active || !b->nodes.count)
continue;
if (!bp_temp[b->priority].primary)