aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ccids
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/ccids')
-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}