diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-05-30 09:44:38 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-06-24 16:18:16 -0400 |
commit | b52124a50fa7b870a3d1a18a8ff56273c7d690dd (patch) | |
tree | 8f8de3584f1383125cecc60efb67734e2b585945 /net/tipc/name_table.h | |
parent | 7eb878ed8e0eae67269439bfd82234f9ba52ffe4 (diff) | |
download | op-kernel-dev-b52124a50fa7b870a3d1a18a8ff56273c7d690dd.zip op-kernel-dev-b52124a50fa7b870a3d1a18a8ff56273c7d690dd.tar.gz |
tipc: Partition name table instance array info into two parts
Modifies the name table array structure that contains the name
sequence instances for a given name type so that the publication
lists associated with a given instance are stored in a dynamically
allocated structure, rather than being embedded within the array
entry itself. This change is being done for several reasons:
1) It reduces the amount of data that needs to be copied whenever
a given array is expanded or contracted to accommodate the first
publication of a new name sequence or the removal of the last
publication of an existing name sequence.
2) It reduces the amount of memory associated with array entries that
are currently unused.
3) It facilitates the upcoming conversion of the publication lists
from TIPC-specific circular lists to standard kernel lists. (Standard
lists cannot be used with the former array structure because the
relocation of array entries during array expansion and contraction
would corrupt the lists.)
Note that, aside from introducing a small amount of code to dynamically
allocate and free the structure that now holds publication list info,
this change is largely a simple renaming exercise that replaces
references to "sseq->LIST" with "sseq->info->LIST" (or "info->LIST").
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/name_table.h')
0 files changed, 0 insertions, 0 deletions