mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 16:40:22 +00:00
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>
This commit is contained in:
parent
8c281780c6
commit
c70b729e66
@ -62,6 +62,20 @@ void dccp_li_hist_delete(struct dccp_li_hist *hist)
|
||||
|
||||
EXPORT_SYMBOL_GPL(dccp_li_hist_delete);
|
||||
|
||||
static inline struct dccp_li_hist_entry *
|
||||
dccp_li_hist_entry_new(struct dccp_li_hist *hist,
|
||||
const gfp_t prio)
|
||||
{
|
||||
return kmem_cache_alloc(hist->dccplih_slab, prio);
|
||||
}
|
||||
|
||||
static inline void dccp_li_hist_entry_delete(struct dccp_li_hist *hist,
|
||||
struct dccp_li_hist_entry *entry)
|
||||
{
|
||||
if (entry != NULL)
|
||||
kmem_cache_free(hist->dccplih_slab, entry);
|
||||
}
|
||||
|
||||
void dccp_li_hist_purge(struct dccp_li_hist *hist, struct list_head *list)
|
||||
{
|
||||
struct dccp_li_hist_entry *entry, *next;
|
||||
|
@ -33,20 +33,6 @@ struct dccp_li_hist_entry {
|
||||
u32 dccplih_interval;
|
||||
};
|
||||
|
||||
static inline struct dccp_li_hist_entry *
|
||||
dccp_li_hist_entry_new(struct dccp_li_hist *hist,
|
||||
const gfp_t prio)
|
||||
{
|
||||
return kmem_cache_alloc(hist->dccplih_slab, prio);
|
||||
}
|
||||
|
||||
static inline void dccp_li_hist_entry_delete(struct dccp_li_hist *hist,
|
||||
struct dccp_li_hist_entry *entry)
|
||||
{
|
||||
if (entry != NULL)
|
||||
kmem_cache_free(hist->dccplih_slab, entry);
|
||||
}
|
||||
|
||||
extern void dccp_li_hist_purge(struct dccp_li_hist *hist,
|
||||
struct list_head *list);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user