mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
memory tier: rename destroy_memory_type() to put_memory_type()
It appears that destroy_memory_type() isn't a very good name because we usually will not free the memory_type here. So rename it to a more appropriate name i.e. put_memory_type(). Link: https://lkml.kernel.org/r/20230706063905.543800-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Suggested-by: Huang, Ying <ying.huang@intel.com> Reviewed-by: "Huang, Ying" <ying.huang@intel.com> Reviewed-by: Xiao Yang <yangx.jy@fujitsu.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Dave Jiang <dave.jiang@intel.com> Cc: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
badbbcd765
commit
bded67f81e
@@ -33,7 +33,7 @@ struct memory_dev_type {
|
||||
#ifdef CONFIG_NUMA
|
||||
extern bool numa_demotion_enabled;
|
||||
struct memory_dev_type *alloc_memory_type(int adistance);
|
||||
void destroy_memory_type(struct memory_dev_type *memtype);
|
||||
void put_memory_type(struct memory_dev_type *memtype);
|
||||
void init_node_memory_type(int node, struct memory_dev_type *default_type);
|
||||
void clear_node_memory_type(int node, struct memory_dev_type *memtype);
|
||||
#ifdef CONFIG_MIGRATION
|
||||
@@ -68,7 +68,7 @@ static inline struct memory_dev_type *alloc_memory_type(int adistance)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void destroy_memory_type(struct memory_dev_type *memtype)
|
||||
static inline void put_memory_type(struct memory_dev_type *memtype)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user