OSDN Git Service

memory tier: rename destroy_memory_type() to put_memory_type()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 6 Jul 2023 06:39:05 +0000 (14:39 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:11 +0000 (10:12 -0700)
commitbded67f81ec47e6054ad24c1c7992a6523a9b2c6
tree40a47686ea7345f59e8b08d1279c792e97c52fa7
parentbadbbcd76545c58eff64bb1548f7f834a30dc52a
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>
drivers/dax/kmem.c
include/linux/memory-tiers.h
mm/memory-tiers.c