aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-12-06 09:27:49 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:56:40 -0500
commite9c8b24a6ade50315f3c080799da45ddadf42269 (patch)
treebf7c9aabba852c4f54f3f38223e0c41445bb2f50 /net/dccp
parent2180c41ca5c1a36c67f4140e80154699333109d2 (diff)
[TFRC]: Rename tfrc_tx_hist to tfrc_tx_hist_slab, for consistency
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/ccids/lib/packet_history.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/dccp/ccids/lib/packet_history.c b/net/dccp/ccids/lib/packet_history.c
index 1d4d6ee9be45..b628714fb2ab 100644
--- a/net/dccp/ccids/lib/packet_history.c
+++ b/net/dccp/ccids/lib/packet_history.c
@@ -53,7 +53,7 @@ struct tfrc_tx_hist_entry {
53/* 53/*
54 * Transmitter History Routines 54 * Transmitter History Routines
55 */ 55 */
56static struct kmem_cache *tfrc_tx_hist; 56static struct kmem_cache *tfrc_tx_hist_slab;
57 57
58static struct tfrc_tx_hist_entry * 58static struct tfrc_tx_hist_entry *
59 tfrc_tx_hist_find_entry(struct tfrc_tx_hist_entry *head, u64 seqno) 59 tfrc_tx_hist_find_entry(struct tfrc_tx_hist_entry *head, u64 seqno)
@@ -66,7 +66,7 @@ static struct tfrc_tx_hist_entry *
66 66
67int tfrc_tx_hist_add(struct tfrc_tx_hist_entry **headp, u64 seqno) 67int tfrc_tx_hist_add(struct tfrc_tx_hist_entry **headp, u64 seqno)
68{ 68{
69 struct tfrc_tx_hist_entry *entry = kmem_cache_alloc(tfrc_tx_hist, gfp_any()); 69 struct tfrc_tx_hist_entry *entry = kmem_cache_alloc(tfrc_tx_hist_slab, gfp_any());
70 70
71 if (entry == NULL) 71 if (entry == NULL)
72 return -ENOBUFS; 72 return -ENOBUFS;
@@ -85,7 +85,7 @@ void tfrc_tx_hist_purge(struct tfrc_tx_hist_entry **headp)
85 while (head != NULL) { 85 while (head != NULL) {
86 struct tfrc_tx_hist_entry *next = head->next; 86 struct tfrc_tx_hist_entry *next = head->next;
87 87
88 kmem_cache_free(tfrc_tx_hist, head); 88 kmem_cache_free(tfrc_tx_hist_slab, head);
89 head = next; 89 head = next;
90 } 90 }
91 91
@@ -278,17 +278,17 @@ EXPORT_SYMBOL_GPL(dccp_rx_hist_purge);
278 278
279__init int packet_history_init(void) 279__init int packet_history_init(void)
280{ 280{
281 tfrc_tx_hist = kmem_cache_create("tfrc_tx_hist", 281 tfrc_tx_hist_slab = kmem_cache_create("tfrc_tx_hist",
282 sizeof(struct tfrc_tx_hist_entry), 0, 282 sizeof(struct tfrc_tx_hist_entry), 0,
283 SLAB_HWCACHE_ALIGN, NULL); 283 SLAB_HWCACHE_ALIGN, NULL);
284 284
285 return tfrc_tx_hist == NULL ? -ENOBUFS : 0; 285 return tfrc_tx_hist_slab == NULL ? -ENOBUFS : 0;
286} 286}
287 287
288void packet_history_exit(void) 288void packet_history_exit(void)
289{ 289{
290 if (tfrc_tx_hist != NULL) { 290 if (tfrc_tx_hist_slab != NULL) {
291 kmem_cache_destroy(tfrc_tx_hist); 291 kmem_cache_destroy(tfrc_tx_hist_slab);
292 tfrc_tx_hist = NULL; 292 tfrc_tx_hist_slab = NULL;
293 } 293 }
294} 294}