diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-05-28 17:25:12 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:15:22 -0400 |
commit | c70b729e662a1b3ee2ef5370c1e4c9bc3ddc239f (patch) | |
tree | eddbd3ddd84e5ebfc0513f8c4dbe23c9eabd8492 /net/dccp | |
parent | 8c281780c6f867460c84bd78d9c3885c10f00ae1 (diff) |
loss_interval: Make dccp_li_hist_entry_{new,delete} private
Not used outside the loss_interval code anymore.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/ccids/lib/loss_interval.c | 14 | ||||
-rw-r--r-- | net/dccp/ccids/lib/loss_interval.h | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/net/dccp/ccids/lib/loss_interval.c b/net/dccp/ccids/lib/loss_interval.c index 8ac68c60a1f1..28eac9be6634 100644 --- a/net/dccp/ccids/lib/loss_interval.c +++ b/net/dccp/ccids/lib/loss_interval.c | |||
@@ -62,6 +62,20 @@ void dccp_li_hist_delete(struct dccp_li_hist *hist) | |||
62 | 62 | ||
63 | EXPORT_SYMBOL_GPL(dccp_li_hist_delete); | 63 | EXPORT_SYMBOL_GPL(dccp_li_hist_delete); |
64 | 64 | ||
65 | static inline struct dccp_li_hist_entry * | ||
66 | dccp_li_hist_entry_new(struct dccp_li_hist *hist, | ||
67 | const gfp_t prio) | ||
68 | { | ||
69 | return kmem_cache_alloc(hist->dccplih_slab, prio); | ||
70 | } | ||
71 | |||
72 | static inline void dccp_li_hist_entry_delete(struct dccp_li_hist *hist, | ||
73 | struct dccp_li_hist_entry *entry) | ||
74 | { | ||
75 | if (entry != NULL) | ||
76 | kmem_cache_free(hist->dccplih_slab, entry); | ||
77 | } | ||
78 | |||
65 | void dccp_li_hist_purge(struct dccp_li_hist *hist, struct list_head *list) | 79 | void dccp_li_hist_purge(struct dccp_li_hist *hist, struct list_head *list) |
66 | { | 80 | { |
67 | struct dccp_li_hist_entry *entry, *next; | 81 | struct dccp_li_hist_entry *entry, *next; |
diff --git a/net/dccp/ccids/lib/loss_interval.h b/net/dccp/ccids/lib/loss_interval.h index 653328d04ef0..8d3c9bfa4915 100644 --- a/net/dccp/ccids/lib/loss_interval.h +++ b/net/dccp/ccids/lib/loss_interval.h | |||
@@ -33,20 +33,6 @@ struct dccp_li_hist_entry { | |||
33 | u32 dccplih_interval; | 33 | u32 dccplih_interval; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | static inline struct dccp_li_hist_entry * | ||
37 | dccp_li_hist_entry_new(struct dccp_li_hist *hist, | ||
38 | const gfp_t prio) | ||
39 | { | ||
40 | return kmem_cache_alloc(hist->dccplih_slab, prio); | ||
41 | } | ||
42 | |||
43 | static inline void dccp_li_hist_entry_delete(struct dccp_li_hist *hist, | ||
44 | struct dccp_li_hist_entry *entry) | ||
45 | { | ||
46 | if (entry != NULL) | ||
47 | kmem_cache_free(hist->dccplih_slab, entry); | ||
48 | } | ||
49 | |||
50 | extern void dccp_li_hist_purge(struct dccp_li_hist *hist, | 36 | extern void dccp_li_hist_purge(struct dccp_li_hist *hist, |
51 | struct list_head *list); | 37 | struct list_head *list); |
52 | 38 | ||